From 77ac89f3299ca27dc5117335844d36ab778124f6 Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Fri, 25 Feb 2022 11:56:51 -1000 Subject: [PATCH] Do not reauthenticate Pusher if we failed for any reason other than expired session --- src/libs/actions/Session/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libs/actions/Session/index.js b/src/libs/actions/Session/index.js index bb58c7983ff9..a427adf730c5 100644 --- a/src/libs/actions/Session/index.js +++ b/src/libs/actions/Session/index.js @@ -508,6 +508,11 @@ function authenticatePusher(socketID, channelName, callback) { return; } + if (data.jsonCode !== 200) { + Log.hmmm('[PusherConnectionManager] Unable to authenticate Pusher for some reason other than expired session'); + return; + } + Log.info( '[PusherConnectionManager] Pusher authenticated successfully', false,