Close websocket connections and allow the client to re-connect on send errors; ref pterodactyl/panel#3596

This commit is contained in:
Dane Everitt
2021-10-24 16:14:00 -07:00
parent 981756b456
commit 023d7ec1ec
4 changed files with 65 additions and 22 deletions

View File

@@ -52,8 +52,7 @@ func (w *WebsocketBag) CancelAll() {
if w.conns != nil {
for _, cancel := range w.conns {
c := *cancel
c()
(*cancel)()
}
}