aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-07-31 18:21:31 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-07-31 18:21:31 +0200
commitc0aefddb1ee75d4d0a36d8db197755469687bfc8 (patch)
treef8da1d29cb2865693256c3944435d97f0f912457 /main.go
parent157867933ff77037555983eb9c085e8e9471a348 (diff)
downloadWRMS-c0aefddb1ee75d4d0a36d8db197755469687bfc8.tar.gz
WRMS-c0aefddb1ee75d4d0a36d8db197755469687bfc8.zip
panic when data to send to a client can not be marshaled
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 1 insertions, 5 deletions
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()
}