fix: socket going away during sends
This commit is contained in:
parent
057e5bc682
commit
2c29c606ee
|
@ -203,6 +203,10 @@ export class Informed extends decorate(Trait) {
|
|||
// Ship it!
|
||||
for (let i = 0; i < packets.length; i++) {
|
||||
const packet = packets[i];
|
||||
// This can actually happen during a send. Yikes.
|
||||
if (!this._socket) {
|
||||
break;
|
||||
}
|
||||
this._socket.send(packet);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user