Fix issue with websocket connection after reregistering.

Big shoutout to @jonahbeckford for the investigation here. Thanks!

Fixes #10939
Fixes #11095
This commit is contained in:
Greyson Parrelli
2021-03-18 11:07:34 -04:00
parent 713441d9cb
commit fb0243a029
2 changed files with 6 additions and 0 deletions

View File

@@ -104,6 +104,10 @@ public class IncomingMessageObserver {
}, new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));
}
public synchronized void notifyRegistrationChanged() {
notifyAll();
}
public synchronized void addDecryptionDrainedListener(@NonNull Runnable listener) {
decryptionDrainedListeners.add(listener);
if (decryptionDrained) {