Don't display the connection terminated dialog for intended disconnects

This commit is contained in:
Cameron Gutman committed 2019-02-10 02:19:37 -08:00
1 parent 710648f3f4
commit 4b7200ae69
2 files changed
+6 -3

No files matched your search

+5 -2
View File
@@ -73,8 +73,11 @@ void Session::clStageFailed(int stage, long errorCode)
void Session::clConnectionTerminated(long errorCode)
{
s_ActiveSession->m_UnexpectedTermination = true;
emit s_ActiveSession->displayLaunchError("Connection terminated");
// Display the termination dialog if this was not intended
if (errorCode != 0) {
s_ActiveSession->m_UnexpectedTermination = true;
emit s_ActiveSession->displayLaunchError("Connection terminated");
}
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
"Connection terminated: %ld",