mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-24 07:30:57 +03:00
Close SSE connection on write error
This commit is contained in:
parent
458017b112
commit
d6dd0aaae7
@ -158,7 +158,8 @@ func (b *broker) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
log.Trace(ctx, "Sending event to client", "event", *event, "client", c.String())
|
||||
err := writeEvent(ctx, w, *event, writeTimeOut)
|
||||
if err != nil {
|
||||
log.Debug(ctx, "Error sending event to client", "event", *event, "client", c.String(), err)
|
||||
log.Debug(ctx, "Error sending event to client. Closing connection", "event", *event, "client", c.String(), err)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user