Do not handle server shutdown as error

When the console is powered off or put into sleep mode during streaming,
the remote will disconnect and report the string "Server shutting down".
This is expected by the user and thus should not be shown as an error
message.
This commit is contained in:
Florian Märkl 2023-02-08 14:08:45 +01:00
commit 6096de8c13
6 changed files with 44 additions and 31 deletions

View file

@ -201,7 +201,7 @@ void StreamWindow::closeEvent(QCloseEvent *event)
void StreamWindow::SessionQuit(ChiakiQuitReason reason, const QString &reason_str)
{
if(reason != CHIAKI_QUIT_REASON_STOPPED)
if(chiaki_quit_reason_is_error(reason))
{
QString m = tr("Chiaki Session has quit") + ":\n" + chiaki_quit_reason_string(reason);
if(!reason_str.isEmpty())