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
+7
View File
@@ -209,6 +209,7 @@ 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);
try {
if (m_Computer->currentGameId != 0) { if (m_Computer->currentGameId != 0) {
http.resumeApp(&m_StreamConfig); http.resumeApp(&m_StreamConfig);
} }
@@ -218,6 +219,12 @@ void Session::exec()
prefs.playAudioOnHost, prefs.playAudioOnHost,
inputHandler.getAttachedGamepadMask()); 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();