mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 02:30:52 +00:00
Stub out the error handling when launch/resume fails
This commit is contained in:
@@ -209,16 +209,23 @@ void Session::exec()
|
|||||||
Q_ASSERT(m_Computer->currentGameId == 0 ||
|
Q_ASSERT(m_Computer->currentGameId == 0 ||
|
||||||
m_Computer->currentGameId == m_App.id);
|
m_Computer->currentGameId == m_App.id);
|
||||||
|
|
||||||
if (m_Computer->currentGameId != 0) {
|
try {
|
||||||
http.resumeApp(&m_StreamConfig);
|
if (m_Computer->currentGameId != 0) {
|
||||||
}
|
http.resumeApp(&m_StreamConfig);
|
||||||
else {
|
}
|
||||||
http.launchApp(m_App.id, &m_StreamConfig,
|
else {
|
||||||
prefs.enableGameOptimizations,
|
http.launchApp(m_App.id, &m_StreamConfig,
|
||||||
prefs.playAudioOnHost,
|
prefs.enableGameOptimizations,
|
||||||
inputHandler.getAttachedGamepadMask());
|
prefs.playAudioOnHost,
|
||||||
|
inputHandler.getAttachedGamepadMask());
|
||||||
|
}
|
||||||
|
} catch (const GfeHttpResponseException& e) {
|
||||||
|
m_ProgressBox.close();
|
||||||
|
// TODO: display error dialog
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QByteArray hostnameStr = m_Computer->activeAddress.toLatin1();
|
QByteArray hostnameStr = m_Computer->activeAddress.toLatin1();
|
||||||
QByteArray siAppVersion = m_Computer->appVersion.toLatin1();
|
QByteArray siAppVersion = m_Computer->appVersion.toLatin1();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user