mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 13:48:05 -06:00
Fix possible crash when using the new "Auto-shutdown" feature
This commit is contained in:
@@ -2049,12 +2049,16 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
|
||||
#if LIBTORRENT_VERSION_MINOR < 15
|
||||
saveDHTEntry();
|
||||
#endif
|
||||
qDebug("Saving session state");
|
||||
saveSessionState();
|
||||
qDebug("Saving fast resume data");
|
||||
saveFastResumeData();
|
||||
qDebug("Deleting the session");
|
||||
delete s;
|
||||
qDebug("Sending computer shutdown signal");
|
||||
misc::shutdownComputer();
|
||||
exiting = true;
|
||||
qApp->exit();
|
||||
qDebug("Exiting the application");
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user