Permalink
Browse files

not sync if watch error

  • Loading branch information...
1 parent 69aadef commit c3cb2d7fd0ecf14385cac5c5e30fee98bd3b3cb9 弈轩 committed Oct 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/service.js
View
@@ -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();
}

0 comments on commit c3cb2d7

Please sign in to comment.