diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 849a494ff..7814f5b80 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -2056,7 +2056,8 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { qDebug("Sending computer shutdown signal"); misc::shutdownComputer(); qDebug("Exiting the application"); - exit(0); + qApp->exit(); + return; } } }