File tree 2 files changed +10
-3
lines changed
src/main/java/com/google/firebase/database/tubesock 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
- # 19.5.1 (Unreleased)
1
+ # Unreleased
2
+ - [ fixed] Fixed a crash on some Pixel devices that occurred when closing the
3
+ network connection.
4
+ - [ added] Added ` Query.get() ` , which allows users to receive a single data
5
+ snapshot. ` Query.get() ` returns the latest value even if an older value
6
+ already exists in cache.
7
+
8
+ # 19.5.1
2
9
- [ fixed] Fixes a regression in v19.4 that may cause assertion failures,
3
10
especially when persistence is enabled.
4
11
Original file line number Diff line number Diff line change @@ -261,8 +261,8 @@ private synchronized void closeSocket() {
261
261
if (socket != null ) {
262
262
try {
263
263
socket .close ();
264
- } catch (IOException e ) {
265
- throw new RuntimeException ( e );
264
+ } catch (Exception e ) {
265
+ eventHandler . onError ( new WebSocketException ( "Failed to close" , e ) );
266
266
}
267
267
}
268
268
state = State .DISCONNECTED ;
You can’t perform that action at this time.
0 commit comments