mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 03:52:48 +00:00
Fix dangerous connection teardown ordering leading to native crashes in jnienet
This commit is contained in:
parent
a907dd0084
commit
246fb69050
@ -81,20 +81,21 @@ public class NvConnection {
|
|||||||
|
|
||||||
public void stop()
|
public void stop()
|
||||||
{
|
{
|
||||||
if (videoStream != null) {
|
if (inputStream != null) {
|
||||||
videoStream.abort();
|
inputStream.abort();
|
||||||
|
inputStream = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (audioStream != null) {
|
if (audioStream != null) {
|
||||||
audioStream.abort();
|
audioStream.abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (controlStream != null) {
|
if (videoStream != null) {
|
||||||
controlStream.abort();
|
videoStream.abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inputStream != null) {
|
if (controlStream != null) {
|
||||||
inputStream.abort();
|
controlStream.abort();
|
||||||
inputStream = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user