Permalink
Browse files

warn instead of quit if wrong proxyID is called

  • Loading branch information...
kaven276 committed Sep 17, 2012
1 parent 7dd1f94 commit df383d3e8749cf6706ff5a086a226695cbb9f9dc
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/ext_hub.js
View
@@ -95,6 +95,10 @@ var server = net.createServer(function(oraSock){
, oraSeq = oraSock.oraSeq++
;
+ if (!wpw) {
+ console.warn('%s, proxy %d is not exists', new Date(), proxyID);
+ return;
+ }
wpw.whenHaveFreeTraceBackID(oraReq.readInt32BE(0) > 0, function(rpcSeq){
if (rpcSeq === 0) {
// for no reply or no rpc requests

0 comments on commit df383d3

Please sign in to comment.