mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Clear connection state before stopping to avoid potential deadlocks
This commit is contained in:
parent
f56b7ff79e
commit
b6ee0764ff
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user