fix relay retry recursion
This commit is contained in:
parent
24fa94824a
commit
f3fa222da5
1 changed files with 2 additions and 1 deletions
|
|
@ -184,10 +184,11 @@ export default class Handler {
|
||||||
res()
|
res()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const sub =this.Subscribe(relay)
|
const sub = this.Subscribe(relay)
|
||||||
relay.onclose = (() => {
|
relay.onclose = (() => {
|
||||||
this.log("relay disconnected")
|
this.log("relay disconnected")
|
||||||
sub.close()
|
sub.close()
|
||||||
|
relay.onclose = null
|
||||||
relay.close()
|
relay.close()
|
||||||
res()
|
res()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue