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