Skip to content

Commit

Permalink
not sync if watch error
Browse files Browse the repository at this point in the history
  • Loading branch information
弈轩 committed Oct 29, 2012
1 parent 69aadef commit c3cb2d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/service.js
Expand Up @@ -78,8 +78,8 @@ Subscribe.prototype.start = function () {
sync(function () {
_self.store.watch(_self.root, _self.options.timeout, function (error, rev) {
if (error) {
_self.emit('error', error);
}
return _self.emit('error', error);
}
if (rev) {
sync();
}
Expand Down

0 comments on commit c3cb2d7

Please sign in to comment.