Permalink
Browse files

checker/retryer

  • Loading branch information...
1 parent 72ed699 commit 8fa76f026bc99282e9e5f613c45684a8a488126f @substack committed Dec 1, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 virus.js
View
@@ -65,7 +65,7 @@ function dhcp (cb) {
ps.on('exit', check);
}
- (function () {
+ function check () {
getAddr(function (addr) {
if (/^192\.168\./.test(addr)) {
clearTimeout(to0);
@@ -74,7 +74,8 @@ function dhcp (cb) {
}
else to1 = setTimeout(retry, 5000);
});
- })();
+ }
+ retry();
}
function getAddr (cb) {

0 comments on commit 8fa76f0

Please sign in to comment.