Permalink
Browse files

minor fixes

  • Loading branch information...
1 parent 29b379f commit 768f890fa9c7bfe5fcbc743c0c1b0c9b43659122 @cbrake committed Jan 25, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 app.js
View
3 app.js
@@ -12,6 +12,7 @@ var setUp = function(uri) {
host = match[1]
} else {
console.log('Error parsing: ' + uri)
+ return
}
http.get(uri, function(res) {
@@ -24,7 +25,7 @@ var setUp = function(uri) {
}).on('close', function() {
//console.log("Connection closed, restarting")
// the following is used to break recursion
- // and blowing the stack
+ // and avoid blowing the stack
setTimeout(setUp, 0, uri)
})
}

0 comments on commit 768f890

Please sign in to comment.