Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Comminos <andrew@comminos.com>2017-08-23 04:46:49 +0300
committerAndrew Comminos <andrew@comminos.com>2017-08-23 04:46:49 +0300
commit5604f7b8873d6f6716327d17140fd00c6b0599fa (patch)
treef89e01357f5642d6e8612823438f91c9ed41f017
parent4a0fe1d3c8592491809783d97f61088b98fa0027 (diff)
Don't throw a synchronization exception if not synchronized after an audio state update.
-rw-r--r--src/main/java/com/morlunk/jumble/JumbleService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/morlunk/jumble/JumbleService.java b/src/main/java/com/morlunk/jumble/JumbleService.java
index acbda30..f1ea5c1 100644
--- a/src/main/java/com/morlunk/jumble/JumbleService.java
+++ b/src/main/java/com/morlunk/jumble/JumbleService.java
@@ -187,8 +187,10 @@ public class JumbleService extends Service implements IJumbleService, IJumbleSes
@Override
public void run() {
try {
+ // If the server session is inactive, ignore this message.
+ // It's likely that this is leftover from a terminated connection.
if (!isSynchronized())
- throw new NotSynchronizedException();
+ return;
final User currentUser = mModelHandler.getUser(mConnection.getSession());
if (currentUser == null) return;