prevent syncing the same message twice

This commit is contained in:
Matias Alejo Garcia 2014-08-28 18:59:44 -03:00
parent 6aa959dcf5
commit 00e1668f86
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ Network.prototype.start = function(opts, openCallback) {
if (tries++ > 5) { if (tries++ > 5) {
self.emit('serverError'); self.emit('serverError');
} else { } else {
self.socket.emit('sync', opts.lastTimestamp); self.socket.emit('sync', opts.lastTimestamp + 1);
} }
}, 500); }, 500);
}); });