fix: safe destroy
This commit is contained in:
parent
4744df90d9
commit
5078c064f0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user