Skip to content

Commit 1b83001

Browse files
committed
When a merge fails, queue the object to be synced again
1 parent 877d4e7 commit 1b83001

File tree

1 file changed

+4
-2
lines changed
  • Simperium/src/main/java/com/simperium/client

1 file changed

+4
-2
lines changed

Simperium/src/main/java/com/simperium/client/Bucket.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,8 +648,10 @@ public void run() {
648648
object.setGhost(ghost);
649649
updateObject(object);
650650
} catch (JSONException | IllegalArgumentException e) {
651-
// Could not apply patch, update from the ghost
652-
updateObjectWithGhost(ghost);
651+
// Could not apply patch, queue the local client to sync the object
652+
// with the local client's modifications
653+
// https://github.com/Simperium/simperium-android/pull/202
654+
mChannel.queueLocalChange(ghost.getSimperiumKey());
653655
}
654656
} else {
655657
// Apply the new ghost to the unmodified local object

0 commit comments

Comments
 (0)