Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix Scoreflex.Realtime.Session.setMaxRetries function

  • Loading branch information...
commit 57ee2e8eba6f2a955a6b97b355e0f7bc83f955c6 1 parent 950ce52
@capflam capflam authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 scoreflexRealtime.js
View
4 scoreflexRealtime.js
@@ -1692,7 +1692,7 @@ Scoreflex.Realtime.Session = function RealtimeSession(scoreflexSDK, clientId, pl
*/
var setMaxRetries = function(n) {
checkInstance();
- SessionState.maxReties = 3;
+ SessionState.maxReties = n;
};
/**
@@ -2745,7 +2745,7 @@ Scoreflex.Realtime.Session = function RealtimeSession(scoreflexSDK, clientId, pl
connectionListener.onConnectionFailed(StatusCode.STATUS_PERMISSION_DENIED);
break;
case RealtimeProto.ConnectionFailed.StatusCode.ALREADY_CONNECTED:
- retries = 0;
+ SessionState.retries = 0;
if (connectionListener.onConnectionFailed)
connectionListener.onConnectionFailed(StatusCode.STATUS_ALREADY_CONNECTED);
break;
Please sign in to comment.
Something went wrong with that request. Please try again.