Skip to content

Commit 3e5fb5b

Browse files
committed
Fixes issue with change queue not sending after going offline and reconnecting.
1 parent 7d71e16 commit 3e5fb5b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/simperium/channel.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ Channel.prototype.onAuth = function( data ) {
323323
this.emit( 'unauthorized', auth );
324324
return;
325325
} catch ( error ) {
326+
// Clear any unacknowledged changes on reconnect
327+
this.localQueue.sent = {};
328+
326329
// request cv and then send method
327330
init = function( cv ) {
328331
if ( cv ) {

0 commit comments

Comments
 (0)