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 --- api/websocket.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'api/websocket.go') diff --git a/api/websocket.go b/api/websocket.go index c90968e7c..e5e2390c7 100644 --- a/api/websocket.go +++ b/api/websocket.go @@ -39,6 +39,5 @@ func connect(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