fix(tsconnect/wasm): Node.js compatibility — safesocket unique name, listen addr normalisation #13
@@ -637,8 +637,12 @@ func (i *jsIPN) logout() {
|
||||
func (i *jsIPN) shutdown() js.Value {
|
||||
return makePromise(func() (any, error) {
|
||||
i.shutdownOnce.Do(func() {
|
||||
i.lb.Shutdown()
|
||||
i.ln.Close()
|
||||
if i.lb != nil {
|
||||
i.lb.Shutdown()
|
||||
}
|
||||
if i.ln != nil {
|
||||
i.ln.Close()
|
||||
}
|
||||
close(i.shutdownCh)
|
||||
})
|
||||
return nil, nil
|
||||
|
||||
Reference in New Issue
Block a user