mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Merge pull request #2803 from Chocobo1/shutdown
WebUI: add delay in shutdown command in order to send out response msg
This commit is contained in:
commit
c259666e43
1 changed files with 3 additions and 3 deletions
|
@ -284,12 +284,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…
Add table
Add a link
Reference in a new issue