X-Git-Url: https://code.octet-stream.net/broadcaster/blobdiff_plain/d14180328760fa282068927068ca5675b9427bc2..8320951221d45c5f5f3d387c5cb4b97d9fa2094c:/server/radio_sync.go diff --git a/server/radio_sync.go b/server/radio_sync.go index 9fd9a65..2eaef34 100644 --- a/server/radio_sync.go +++ b/server/radio_sync.go @@ -53,6 +53,8 @@ func RadioSync(ws *websocket.Conn) { radio = r log.Println("Radio authenticated:", radio.Name) isAuthenticated = true + commandRouter.AddWebsocket(r.Id, ws) + defer commandRouter.RemoveWebsocket(ws) go KeepFilesUpdated(ws) go KeepPlaylistsUpdated(ws)