Skip to content

Commit 2444ad8

Browse files
authored
Fix wrong "should start" check in RemoteStore (watch instead of write stream) (#88)
1 parent 5703953 commit 2444ad8

File tree

1 file changed

+1
-1
lines changed
  • firebase-firestore/src/main/java/com/google/firebase/firestore/remote

1 file changed

+1
-1
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/remote/RemoteStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ private void handleWriteStreamClose(Status status) {
617617
if (Status.OK.equals(status)) {
618618
// Graceful stop (due to stop() or idle timeout). Make sure that's desirable.
619619
hardAssert(
620-
!shouldStartWatchStream(), "Write stream was stopped gracefully while still needed.");
620+
!shouldStartWriteStream(), "Write stream was stopped gracefully while still needed.");
621621
}
622622

623623
// If the write stream closed due to an error, invoke the error callbacks if there are pending

0 commit comments

Comments
 (0)