Permalink
Browse files

[enhance] runtime, client, ping: make the difference betwend passive …

…and active pang response
  • Loading branch information...
1 parent 4db85e6 commit b580684e97ade64e29231dfb89c628b1594dc436 @BourgerieQuentin BourgerieQuentin committed May 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 opabsl/jsbsl/bslSession.js
@@ -689,7 +689,7 @@ var LowLevelPingLoop = {};
for(var i = 0; i < messages.length; i++){
process_msg(messages[i]);
}
- break;
+ return null;
case "result" :
return native_response;
default :
@@ -761,7 +761,7 @@ var LowLevelPingLoop = {};
} else {
panged[result.id]=result.body;
}
- } else {
+ } else if (f===undefined){
if(attempt >= max_pang_attempt) {
delete(panged[id]);
panged.waiting_pang--;

0 comments on commit b580684

Please sign in to comment.