Merge branch 'master' into dynamic-settings

This commit is contained in:
boufni95 2025-10-29 20:16:59 +00:00
commit fc2ea07e59

View file

@ -186,8 +186,11 @@ export default class Handler {
this.relay.onclose = (() => {
this.log("relay disconnected")
this.sub?.close()
this.relay?.close()
this.relay = null
if (this.relay) {
this.relay.onclose = null
this.relay.close()
this.relay = null
}
this.sub = null
res()
})