fix: safe destroy
This commit is contained in:
parent
4744df90d9
commit
5078c064f0
|
@ -22,9 +22,11 @@ class InformedBase extends Trait {
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy() {
|
destroy() {
|
||||||
|
if (this._socket) {
|
||||||
delete this._socket.entity;
|
delete this._socket.entity;
|
||||||
delete this._socket;
|
delete this._socket;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
reduceStateDiffForEntityList(diff, position) {
|
reduceStateDiffForEntityList(diff, position) {
|
||||||
// Reduce the entity list.
|
// Reduce the entity list.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user