mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
Webui: add delay in shutdown command in order to send out response msg
This commit is contained in:
parent
19b9a84576
commit
1037d7f335
@ -289,12 +289,12 @@ void WebApplication::action_version_qbittorrent()
|
||||
void WebApplication::action_command_shutdown()
|
||||
{
|
||||
qDebug() << "Shutdown request from Web UI";
|
||||
CHECK_URI(0);
|
||||
|
||||
// Special case handling for shutdown, we
|
||||
// need to reply to the Web UI before
|
||||
// actually shutting down.
|
||||
|
||||
CHECK_URI(0);
|
||||
QTimer::singleShot(0, qApp, SLOT(quit()));
|
||||
QTimer::singleShot(100, qApp, SLOT(quit()));
|
||||
}
|
||||
|
||||
void WebApplication::action_command_download()
|
||||
|
Loading…
Reference in New Issue
Block a user