diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-07-31 18:21:31 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-07-31 18:21:31 +0200 |
| commit | c0aefddb1ee75d4d0a36d8db197755469687bfc8 (patch) | |
| tree | f8da1d29cb2865693256c3944435d97f0f912457 /main.go | |
| parent | 157867933ff77037555983eb9c085e8e9471a348 (diff) | |
| download | WRMS-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.go | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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() } |
