mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 06:30:55 +00:00
Don't display the connection terminated dialog for intended disconnects
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Submodule moonlight-common-c/moonlight-common-c updated: dc21e28e1f...eb6bfe0205
Reference in New Issue
Block a user