diff --git a/main.go b/main.go index 935f2f9..48ff1e3 100644 --- a/main.go +++ b/main.go @@ -377,6 +377,7 @@ func present(w http.ResponseWriter, r *http.Request) { delete(room.present, controlChan) close(controlChan) mu.Unlock() + return case <-ticker.C: writePresentHeartbeat(w, flusher)