Permalink
Browse files

Fix Scoreflex.Realtime.Session.setMaxRetries function

  • Loading branch information...
capflam committed Feb 24, 2014
1 parent 950ce52 commit 57ee2e8eba6f2a955a6b97b355e0f7bc83f955c6
Showing with 2 additions and 2 deletions.
  1. +2 −2 scoreflexRealtime.js
View
@@ -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;

0 comments on commit 57ee2e8

Please sign in to comment.