mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-10 04:11:16 +00:00
Fix possible infinite loop in qBtSession constructor (when Web UI is enabled)
This commit is contained in:
parent
d05c725253
commit
d8af5d681c
@ -331,6 +331,7 @@ MainWindow::~MainWindow() {
|
|||||||
// Delete BTSession objects
|
// Delete BTSession objects
|
||||||
qDebug("Deleting BTSession");
|
qDebug("Deleting BTSession");
|
||||||
QBtSession::drop();
|
QBtSession::drop();
|
||||||
|
BTSession = 0;
|
||||||
// May freeze for a few seconds after the next line
|
// May freeze for a few seconds after the next line
|
||||||
// because the Bittorrent session proxy will
|
// because the Bittorrent session proxy will
|
||||||
// actually be deleted now and destruction
|
// actually be deleted now and destruction
|
||||||
|
@ -139,7 +139,7 @@ QBtSession::QBtSession()
|
|||||||
#endif
|
#endif
|
||||||
connect(m_scanFolders, SIGNAL(torrentsAdded(QStringList&)), this, SLOT(addTorrentsFromScanFolder(QStringList&)));
|
connect(m_scanFolders, SIGNAL(torrentsAdded(QStringList&)), this, SLOT(addTorrentsFromScanFolder(QStringList&)));
|
||||||
// Apply user settings to Bittorrent session
|
// Apply user settings to Bittorrent session
|
||||||
configureSession();
|
QTimer::singleShot(0, this, SLOT(configureSession()));
|
||||||
qDebug("* BTSession constructed");
|
qDebug("* BTSession constructed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user