Skip to content

Commit f9c7d59

Browse files
committed
Set isIndexing to false as soon as we don't receive a mark from the indexing process.
1 parent 1622ade commit f9c7d59

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/simperium/channel.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,11 @@ Channel.prototype.onIndex = function( data ) {
399399
cv = page.current,
400400
update = internal.updateObjectVersion.bind( this );
401401

402+
if ( !mark ) {
403+
// Let the bucket know straight away that indexing has finished
404+
this.bucket.isIndexing = false;
405+
}
406+
402407
var objectId;
403408
objects.forEach( function( object ) {
404409
objectId = object.id;
@@ -674,4 +679,3 @@ function collectionRevisions( channel, id, callback ) {
674679
callback( e );
675680
} );
676681
}
677-

0 commit comments

Comments
 (0)