Fix quit error message when another PC started the streaming session
This commit is contained in:
parent
608db6a3e5
commit
56277af5d1
1 changed files with 8 additions and 10 deletions
|
|
@ -364,22 +364,20 @@ private:
|
||||||
try {
|
try {
|
||||||
if (m_Computer->currentGameId != 0) {
|
if (m_Computer->currentGameId != 0) {
|
||||||
http.quitApp();
|
http.quitApp();
|
||||||
|
|
||||||
if (http.getCurrentGame(http.getServerInfo()) != 0) {
|
|
||||||
{
|
|
||||||
QWriteLocker lock(&m_Computer->lock);
|
|
||||||
m_Computer->pendingQuit = false;
|
|
||||||
}
|
|
||||||
emit quitAppFailed("Unable to quit game that wasn't started by this computer. "
|
|
||||||
"You must quit the game on the host PC manually or use the device that originally started the game.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} catch (const GfeHttpResponseException& e) {
|
} catch (const GfeHttpResponseException& e) {
|
||||||
{
|
{
|
||||||
QWriteLocker lock(&m_Computer->lock);
|
QWriteLocker lock(&m_Computer->lock);
|
||||||
m_Computer->pendingQuit = false;
|
m_Computer->pendingQuit = false;
|
||||||
}
|
}
|
||||||
emit quitAppFailed(e.toQString());
|
if (e.getStatusCode() == 599) {
|
||||||
|
// 599 is a special code we make a custom message for
|
||||||
|
emit quitAppFailed("The running game wasn't started by this PC. "
|
||||||
|
"You must quit the game on the host PC manually or use the device that originally started the game.");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
emit quitAppFailed(e.toQString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue