Skip to content

Commit

Permalink
Modified configurePingInterval to check if it is already set
Browse files Browse the repository at this point in the history
  • Loading branch information
abnanda1 committed Dec 18, 2013
1 parent 004ead4 commit 3148293
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -101,7 +101,7 @@
$(connection).triggerHandler(events.onError, [error]);
};

if (!config.pingIntervalId && config.pingInterval) {
if (!connection._.pingIntervalId && config.pingInterval) {
connection._.pingIntervalId = window.setInterval(function () {
signalR.transports._logic.pingServer(connection).fail(onFail);
}, config.pingInterval);
Expand Down

0 comments on commit 3148293

Please sign in to comment.