mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 14:03:11 -07:00
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:
parent
582ec7aa54
commit
6096de8c13
6 changed files with 44 additions and 31 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue