From b6ee0764ff4200192b6ef168d304e939cb8cbbd3 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 3 Oct 2014 23:07:42 -0700 Subject: [PATCH] Clear connection state before stopping to avoid potential deadlocks --- src/com/limelight/Game.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/limelight/Game.java b/src/com/limelight/Game.java index e0e42345..0051af79 100644 --- a/src/com/limelight/Game.java +++ b/src/com/limelight/Game.java @@ -680,8 +680,8 @@ public class Game extends Activity implements SurfaceHolder.Callback, private void stopConnection() { if (connecting || connected) { - conn.stop(); connecting = connected = false; + conn.stop(); } // Close the Evdev watcher to allow use of captured input devices