diff options
author | Chris <ccbrown112@gmail.com> | 2017-10-03 10:53:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-03 10:53:53 -0500 |
commit | 5e69ce099f521aa49fc267c62235c003eae530ff (patch) | |
tree | c7177e4cac419082753225819f62d07c8b5671e8 /api/websocket.go | |
parent | bfe7955fb0c72bb6f3e0a1e0aaca70cff27d7ddc (diff) | |
download | chat-5e69ce099f521aa49fc267c62235c003eae530ff.tar.gz chat-5e69ce099f521aa49fc267c62235c003eae530ff.tar.bz2 chat-5e69ce099f521aa49fc267c62235c003eae530ff.zip |
Goroutine wranglin (#7556)
* goroutine wranglin
* synchronize WebConn.WritePump
Diffstat (limited to 'api/websocket.go')
-rw-r--r-- | api/websocket.go | 3 |
1 files changed, 1 insertions, 2 deletions
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() } |