Don't display the connection terminated dialog for intended disconnects
This commit is contained in:
parent
710648f3f4
commit
4b7200ae69
2 changed files with 6 additions and 3 deletions
|
|
@ -73,8 +73,11 @@ void Session::clStageFailed(int stage, long errorCode)
|
||||||
|
|
||||||
void Session::clConnectionTerminated(long errorCode)
|
void Session::clConnectionTerminated(long errorCode)
|
||||||
{
|
{
|
||||||
s_ActiveSession->m_UnexpectedTermination = true;
|
// Display the termination dialog if this was not intended
|
||||||
emit s_ActiveSession->displayLaunchError("Connection terminated");
|
if (errorCode != 0) {
|
||||||
|
s_ActiveSession->m_UnexpectedTermination = true;
|
||||||
|
emit s_ActiveSession->displayLaunchError("Connection terminated");
|
||||||
|
}
|
||||||
|
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
"Connection terminated: %ld",
|
"Connection terminated: %ld",
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit dc21e28e1fa29202977344cea2bd86a3fba755c6
|
Subproject commit eb6bfe020538d57ec2781c65f450409f32e56515
|
||||||
Loading…
Add table
Add a link
Reference in a new issue