From c0aefddb1ee75d4d0a36d8db197755469687bfc8 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 31 Jul 2023 18:21:31 +0200 Subject: panic when data to send to a client can not be marshaled --- main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 0b9b956..c2642f7 100644 --- a/main.go +++ b/main.go @@ -243,11 +243,7 @@ func eventsEndpoint(w http.ResponseWriter, r *http.Request) { }() llog.Info("New SSE connection with id %v", connId) - err = wrms.initConn(conn) - if err != nil { - return - } - + wrms.initConn(conn) conn.serve() } -- cgit v1.2.3