X-Git-Url: https://code.octet-stream.net/broadcaster/blobdiff_plain/8f9b19f7877e32c15a5f4c296d6738f449dfcc19..8320951221d45c5f5f3d387c5cb4b97d9fa2094c:/server/radio_sync.go?ds=inline 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)