fix: safe destroy

This commit is contained in:
cha0s 2019-03-21 01:32:59 -05:00
parent 4744df90d9
commit 5078c064f0

View File

@ -22,8 +22,10 @@ class InformedBase extends Trait {
}
destroy() {
delete this._socket.entity;
delete this._socket;
if (this._socket) {
delete this._socket.entity;
delete this._socket;
}
}
reduceStateDiffForEntityList(diff, position) {