From 5e69ce099f521aa49fc267c62235c003eae530ff Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 3 Oct 2017 10:53:53 -0500 Subject: Goroutine wranglin (#7556) * goroutine wranglin * synchronize WebConn.WritePump --- app/web_hub.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/web_hub.go') diff --git a/app/web_hub.go b/app/web_hub.go index 50ccb100e..0a70cb6d1 100644 --- a/app/web_hub.go +++ b/app/web_hub.go @@ -395,7 +395,9 @@ func (h *Hub) Start() { } if !found { - go h.app.SetStatusOffline(userId, false) + h.app.Go(func() { + h.app.SetStatusOffline(userId, false) + }) } case userId := <-h.invalidateUser: -- cgit v1.2.3-1-g7c22