Skip to content

Commit

Permalink
Clear interval on an error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Young Hahn committed Jan 31, 2012
1 parent 8e9ec39 commit a4fd8e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tilejson.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ TileJSON.prototype._open = function(uri) {
var tilejson = this;
function error(err) {
process.nextTick(function() {
clearInterval(tilejson._deleteInterval);
tilejson.emit('open', err);
});
}
Expand Down

0 comments on commit a4fd8e1

Please sign in to comment.