Skip to content

🎧 Your Personal Streaming Service

fix(ui): activity Indicator switching constantly between online/offline (#5054)

Raphael Catolino44a54824931f
diff --git a/server/events/sse.go b/server/events/sse.go
index 39e217160..565d8c016 100644
--- a/server/events/sse.go
+++ b/server/events/sse.go
@@ -24,8 +24,9 @@ type Broker interface {
const (
keepAliveFrequency = 15 * time.Second
- writeTimeOut = 5 * time.Second
- bufferSize = 1
+ // The timeout must be higher than the keepAliveFrequency, or the lack of activity will cause the channel to close.
+ writeTimeOut = keepAliveFrequency + 5*time.Second
+ bufferSize = 1
)
type (