close ws gracefully to avoid stale joiners
This commit is contained in:
1 parent
1dad19e6b6
commit
c89688afd2
9 files changed
+32
-14
No files matched your search
@@ -273,9 +273,7 @@ func (b *Bridge) forceReconnect(reason string) {
|
||||
b.mu.Lock()
|
||||
ws := b.ws
|
||||
b.mu.Unlock()
|
||||
if ws != nil {
|
||||
ws.Close()
|
||||
}
|
||||
common.CloseWS(ws)
|
||||
}
|
||||
|
||||
func (b *Bridge) sendInitBundle() {
|
||||
|
||||
Reference in new issue
Block a user