File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
src/main/java/com/google/firebase/database/connection Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 1
1
# 19.7.0
2
2
- [ added] Added ` Query.startAfter() ` and ` Query.endBefore() ` filter for paginating
3
3
RTDB queries.
4
+ - [ fixed] Fixed an issue with ` Query.get() ` that caused the client to go offline if
5
+ only ` get() ` operations were pending.
4
6
5
7
# 19.6.0
6
8
- [ fixed] Fixed a crash on some Pixel devices that occurred when closing the
Original file line number Diff line number Diff line change @@ -1075,6 +1075,7 @@ private void restoreState() {
1075
1075
onDisconnectRequestQueue .clear ();
1076
1076
1077
1077
if (logger .logsDebug ()) logger .debug ("Restoring reads." );
1078
+ // Restore gets
1078
1079
ArrayList <Long > outstandingGetKeys = new ArrayList <Long >(outstandingGets .keySet ());
1079
1080
Collections .sort (outstandingGetKeys );
1080
1081
for (Long getId : outstandingGetKeys ) {
@@ -1353,6 +1354,7 @@ public void run() {
1353
1354
*/
1354
1355
private boolean isIdle () {
1355
1356
return this .listens .isEmpty ()
1357
+ && this .outstandingGets .isEmpty ()
1356
1358
&& this .requestCBHash .isEmpty ()
1357
1359
&& !this .hasOnDisconnects
1358
1360
&& this .outstandingPuts .isEmpty ();
You can’t perform that action at this time.
0 commit comments