diff options
Diffstat (limited to 'api/web_conn.go')
-rw-r--r-- | api/web_conn.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api/web_conn.go b/api/web_conn.go index 9a6fc29df..971cc8cb8 100644 --- a/api/web_conn.go +++ b/api/web_conn.go @@ -4,11 +4,12 @@ package api import ( + "time" + l4g "github.com/alecthomas/log4go" "github.com/gorilla/websocket" "github.com/mattermost/platform/model" "github.com/mattermost/platform/utils" - "time" ) const ( @@ -77,7 +78,7 @@ func (c *WebConn) readPump() { return } else { msg.UserId = c.UserId - PublishAndForget(&msg) + go Publish(&msg) } } } |