ipc: safe flush

This commit is contained in:
jean-emmanuel 2018-02-15 09:24:11 +01:00
parent 624251f12b
commit 2402a66a83
2 changed files with 2 additions and 2 deletions

View file

@ -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])
}

View file

@ -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])
}