Fix Moonlight on Android crashing when resuming/quiting session
This commit is contained in:
parent
61b4f12377
commit
d812d7b889
1 changed files with 4 additions and 2 deletions
|
|
@ -593,7 +593,7 @@ void resume(resp_https_t response, req_https_t request) {
|
||||||
stream::launch_session_t launch_session;
|
stream::launch_session_t launch_session;
|
||||||
|
|
||||||
if(stream::has_session) {
|
if(stream::has_session) {
|
||||||
tree.put("root.gamesession", 0);
|
tree.put("root.resume", 0);
|
||||||
tree.put("root.<xmlattr>.status_code", 503);
|
tree.put("root.<xmlattr>.status_code", 503);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
@ -614,7 +614,7 @@ void resume(resp_https_t response, req_https_t request) {
|
||||||
stream::launch_event.raise(launch_session);
|
stream::launch_event.raise(launch_session);
|
||||||
|
|
||||||
tree.put("root.<xmlattr>.status_code", 200);
|
tree.put("root.<xmlattr>.status_code", 200);
|
||||||
tree.put("root.gamesession", 1);
|
tree.put("root.resume", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cancel(resp_https_t response, req_https_t request) {
|
void cancel(resp_https_t response, req_https_t request) {
|
||||||
|
|
@ -630,6 +630,7 @@ void cancel(resp_https_t response, req_https_t request) {
|
||||||
|
|
||||||
if(stream::has_session) {
|
if(stream::has_session) {
|
||||||
tree.put("root.<xmlattr>.status_code", 503);
|
tree.put("root.<xmlattr>.status_code", 503);
|
||||||
|
tree.put("root.cancel", 0);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -637,6 +638,7 @@ void cancel(resp_https_t response, req_https_t request) {
|
||||||
proc::proc.terminate();
|
proc::proc.terminate();
|
||||||
current_appid = -1;
|
current_appid = -1;
|
||||||
|
|
||||||
|
tree.put("root.cancel", 1);
|
||||||
tree.put("root.<xmlattr>.status_code", 200);
|
tree.put("root.<xmlattr>.status_code", 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue