Fix possible infinite loop in qBtSession constructor (when Web UI is enabled)

This commit is contained in:
Christophe Dumez 2010-11-21 19:46:06 +00:00
parent d05c725253
commit d8af5d681c
2 changed files with 2 additions and 1 deletions

View file

@ -331,6 +331,7 @@ MainWindow::~MainWindow() {
// Delete BTSession objects
qDebug("Deleting BTSession");
QBtSession::drop();
BTSession = 0;
// May freeze for a few seconds after the next line
// because the Bittorrent session proxy will
// actually be deleted now and destruction