summaryrefslogtreecommitdiffstats
path: root/wsapi
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-09-05 07:58:47 -0700
committerGitHub <noreply@github.com>2017-09-05 07:58:47 -0700
commitd6383643cb9f60e0429d09c1d363b7781da15e47 (patch)
tree57c2cebd71930e0efa2be4c74ea24715871fa02d /wsapi
parent7843dc3cfa7e99db5b6c89698ef09dbc7b6138ea (diff)
downloadchat-d6383643cb9f60e0429d09c1d363b7781da15e47.tar.gz
chat-d6383643cb9f60e0429d09c1d363b7781da15e47.tar.bz2
chat-d6383643cb9f60e0429d09c1d363b7781da15e47.zip
PLT-6226 fixing race in IsAuth (#7296)
* Fixing race in isAuth function * PLT-6226 fixing race in IsAuth * Moving int64 to top so it's aligned * Adding comment and fixing asymmetric call
Diffstat (limited to 'wsapi')
-rw-r--r--wsapi/websocket_handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsapi/websocket_handler.go b/wsapi/websocket_handler.go
index d137ec7fc..a847a7df4 100644
--- a/wsapi/websocket_handler.go
+++ b/wsapi/websocket_handler.go
@@ -23,7 +23,7 @@ type webSocketHandler struct {
func (wh webSocketHandler) ServeWebSocket(conn *app.WebConn, r *model.WebSocketRequest) {
l4g.Debug("/api/v3/users/websocket:%s", r.Action)
- session, sessionErr := app.GetSession(conn.SessionToken)
+ session, sessionErr := app.GetSession(conn.GetSessionToken())
if sessionErr != nil {
l4g.Error(utils.T("api.web_socket_handler.log.error"), "/api/v3/users/websocket", r.Action, r.Seq, conn.UserId, sessionErr.SystemMessage(utils.T), sessionErr.Error())
sessionErr.DetailedError = ""