Merge branch 'master' into dynamic-settings
This commit is contained in:
commit
fc2ea07e59
1 changed files with 5 additions and 2 deletions
|
|
@ -186,8 +186,11 @@ export default class Handler {
|
||||||
this.relay.onclose = (() => {
|
this.relay.onclose = (() => {
|
||||||
this.log("relay disconnected")
|
this.log("relay disconnected")
|
||||||
this.sub?.close()
|
this.sub?.close()
|
||||||
this.relay?.close()
|
if (this.relay) {
|
||||||
|
this.relay.onclose = null
|
||||||
|
this.relay.close()
|
||||||
this.relay = null
|
this.relay = null
|
||||||
|
}
|
||||||
this.sub = null
|
this.sub = null
|
||||||
res()
|
res()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue