ipc: safe flush
This commit is contained in:
parent
1a626c1f7e
commit
7dd7fcceca
2 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ class Socket extends EventEmitter {
|
|||
|
||||
for (var i in this.queue) {
|
||||
|
||||
this.socket.send(this.queue[i])
|
||||
if (this.connected()) this.socket.send(this.queue[i])
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ class Ipc extends EventEmitter {
|
|||
|
||||
for (var i in this.queue) {
|
||||
|
||||
this.socket.send(this.queue[i])
|
||||
if (this.connected()) this.socket.send(this.queue[i])
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue