Skip to content

Commit 1ccdb88

Browse files
author
Hideki Itakura
committed
setPaused() will notify a change only when paused value changes.
1 parent 0acbc0a commit 1ccdb88

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/com/couchbase/lite/replicator/ChangeTracker.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,10 @@ public Map<String, Object> changesFeedPOSTBodyMap() {
594594
public void setPaused(boolean paused) {
595595
Log.v(Log.TAG, "setPaused: " + paused);
596596
synchronized (pausedObj) {
597-
this.paused = paused;
598-
pausedObj.notifyAll();
597+
if(this.paused != paused) {
598+
this.paused = paused;
599+
pausedObj.notifyAll();
600+
}
599601
}
600602
}
601603

0 commit comments

Comments
 (0)