Close websocket connections and allow the client to re-connect on send errors; ref pterodactyl/panel#3596
This commit is contained in:
@@ -52,8 +52,7 @@ func (w *WebsocketBag) CancelAll() {
|
||||
|
||||
if w.conns != nil {
|
||||
for _, cancel := range w.conns {
|
||||
c := *cancel
|
||||
c()
|
||||
(*cancel)()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user