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
@@ -283,7 +283,8 @@ func (c *SignalingClient) Close() error {
|
||||
if !c.closed.CompareAndSwap(false, true) {
|
||||
return nil
|
||||
}
|
||||
return c.conn.Close()
|
||||
common.CloseWS(c.conn)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *SignalingClient) sendFrame(method string, params any) error {
|
||||
|
||||
Reference in new issue
Block a user