Stub out the error handling when launch/resume fails

This commit is contained in:
Cameron Gutman
2018-06-28 02:10:31 -07:00
parent d1a512538c
commit e5ef1bcfc5

View File

@@ -209,16 +209,23 @@ void Session::exec()
Q_ASSERT(m_Computer->currentGameId == 0 ||
m_Computer->currentGameId == m_App.id);
if (m_Computer->currentGameId != 0) {
http.resumeApp(&m_StreamConfig);
}
else {
http.launchApp(m_App.id, &m_StreamConfig,
prefs.enableGameOptimizations,
prefs.playAudioOnHost,
inputHandler.getAttachedGamepadMask());
try {
if (m_Computer->currentGameId != 0) {
http.resumeApp(&m_StreamConfig);
}
else {
http.launchApp(m_App.id, &m_StreamConfig,
prefs.enableGameOptimizations,
prefs.playAudioOnHost,
inputHandler.getAttachedGamepadMask());
}
} catch (const GfeHttpResponseException& e) {
m_ProgressBox.close();
// TODO: display error dialog
return;
}
QByteArray hostnameStr = m_Computer->activeAddress.toLatin1();
QByteArray siAppVersion = m_Computer->appVersion.toLatin1();