Sink pool cleanup and organization; better future support when we add more sinks

This commit is contained in:
Dane Everitt
2022-01-23 09:57:25 -05:00
parent 2a9c9e893e
commit a4904365c9
6 changed files with 79 additions and 49 deletions

View File

@@ -188,8 +188,7 @@ func deleteServer(c *gin.Context) {
// as well.
s.CtxCancel()
s.Events().Destroy()
s.LogSink().Destroy()
s.InstallSink().Destroy()
s.DestroyAllSinks()
s.Websockets().CancelAll()
// Remove any pending remote file downloads for the server.