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 --- api4/websocket.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'api4/websocket.go') diff --git a/api4/websocket.go b/api4/websocket.go index 2793c0bd0..c148ec3bf 100644 --- a/api4/websocket.go +++ b/api4/websocket.go @@ -40,6 +40,5 @@ func connectWebSocket(c *Context, w http.ResponseWriter, r *http.Request) { c.App.HubRegister(wc) } - go wc.WritePump() - wc.ReadPump() + wc.Pump() } -- cgit v1.2.3-1-g7c22