From d6383643cb9f60e0429d09c1d363b7781da15e47 Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Tue, 5 Sep 2017 07:58:47 -0700 Subject: 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 --- wsapi/websocket_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wsapi') 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 = "" -- cgit v1.2.3-1-g7c22