Close connected sockets when a server is deleted; closes pterodactyl/panel#2428

This commit is contained in:
Dane Everitt
2020-10-03 20:46:29 -07:00
parent e02c197585
commit 37e59e6928
5 changed files with 101 additions and 0 deletions

View File

@@ -54,6 +54,10 @@ type Server struct {
// The console throttler instance used to control outputs.
throttler *ConsoleThrottler
// Tracks open websocket connections for the server.
wsBag *WebsocketBag
wsBagLocker sync.Mutex
}
type InstallerDetails struct {