Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix SessionState.retries updates

  • Loading branch information...
commit 950ce52a0a67793c45bad85b207205d499314693 1 parent 330c767
@capflam capflam authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 scoreflexRealtime.js
View
4 scoreflexRealtime.js
@@ -1809,7 +1809,7 @@ Scoreflex.Realtime.Session = function RealtimeSession(scoreflexSDK, clientId, pl
throw new Scoreflex.InvalidArgumentException('Connection listener cannot be undefined');
if (SessionState.retries >= SessionState.maxReties) {
- retries = 0;
+ SessionState.retries = 0;
if (listener.onConnectionFailed)
listener.onConnectionFailed(StatusCode.STATUS_NETWORK_ERROR);
return;
@@ -2722,7 +2722,7 @@ Scoreflex.Realtime.Session = function RealtimeSession(scoreflexSDK, clientId, pl
connectionListener.onConnectionFailed(StatusCode.STATUS_INVALID_MESSAGE);
break;
case RealtimeProto.ConnectionFailed.StatusCode.PROTOCOL_ERROR:
- retries = 0;
+ SessionState.retries = 0;
if (connectionListener.onConnectionFailed)
connectionListener.onConnectionFailed(StatusCode.STATUS_PROTOCOL_ERROR);
break;
Please sign in to comment.
Something went wrong with that request. Please try again.