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()
|
||||
return
|
||||
}
|
||||
const sub =this.Subscribe(relay)
|
||||
const sub = this.Subscribe(relay)
|
||||
relay.onclose = (() => {
|
||||
this.log("relay disconnected")
|
||||
sub.close()
|
||||
relay.onclose = null
|
||||
relay.close()
|
||||
res()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue