File tree 3 files changed +7
-4
lines changed
main/java/com/google/firebase/messaging
test/java/com/google/firebase/messaging 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Unreleased
2
2
3
+ # 23.1.1
4
+
5
+ * [ fixed] Fixed deadlock when handling simultaneous messages.
6
+
3
7
# 23.1.0
4
8
* [ unchanged] Updated to accommodate the release of the updated
5
9
[ messaging_longer] Kotlin extensions library.
6
10
7
-
8
11
## Kotlin
9
12
The Kotlin extensions library transitively includes the updated
10
13
` firebase-messaging ` library. The Kotlin extensions library has the following
Original file line number Diff line number Diff line change @@ -108,9 +108,7 @@ static void sendWakefulServiceIntent(
108
108
wakeLock .acquire (WAKE_LOCK_ACQUIRE_TIMEOUT_MILLIS );
109
109
}
110
110
111
- connection
112
- .sendIntent (intent )
113
- .addOnCompleteListener (Runnable ::run , t -> completeWakefulIntent (intent ));
111
+ connection .sendIntent (intent ).addOnCompleteListener (t -> completeWakefulIntent (intent ));
114
112
}
115
113
}
116
114
Original file line number Diff line number Diff line change 27
27
import org .junit .Test ;
28
28
import org .junit .runner .RunWith ;
29
29
import org .robolectric .RobolectricTestRunner ;
30
+ import org .robolectric .shadows .ShadowLooper ;
30
31
import org .robolectric .shadows .ShadowPowerManager ;
31
32
32
33
@ RunWith (RobolectricTestRunner .class )
@@ -77,6 +78,7 @@ public void testSendWakefulServiceIntent_ReleasesWakeLock() {
77
78
WakeLock wakeLock = ShadowPowerManager .getLatestWakeLock ();
78
79
taskCompletionSource .setResult (null );
79
80
81
+ ShadowLooper .idleMainLooper ();
80
82
assertThat (wakeLock .isHeld ()).isFalse ();
81
83
}
82
84
You can’t perform that action at this time.
0 commit comments