Skip to content

Commit d776081

Browse files
committed
Merge remote-tracking branch 'origin/fix/stuck-offline-queue'
2 parents 3eaeef7 + 3e5fb5b commit d776081

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)