mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-24 09:16:39 +00:00
Clear connection state before stopping to avoid potential deadlocks
This commit is contained in:
@@ -680,8 +680,8 @@ public class Game extends Activity implements SurfaceHolder.Callback,
|
|||||||
|
|
||||||
private void stopConnection() {
|
private void stopConnection() {
|
||||||
if (connecting || connected) {
|
if (connecting || connected) {
|
||||||
conn.stop();
|
|
||||||
connecting = connected = false;
|
connecting = connected = false;
|
||||||
|
conn.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close the Evdev watcher to allow use of captured input devices
|
// Close the Evdev watcher to allow use of captured input devices
|
||||||
|
|||||||
Reference in New Issue
Block a user