diff --git a/main.go b/main.go index 778d8d6..0fa92f7 100644 --- a/main.go +++ b/main.go @@ -317,6 +317,7 @@ func control(w http.ResponseWriter, r *http.Request) { if !c.Active { http.Error(w, "client is not active", http.StatusBadRequest) + return } rm.sendControlEvent(&controlEvent{