Browse Source

Disable processing events when adding torrents. Closes #7436.

webUI connection timeout & deletion might occur while
doing processEvents() and will result in use-after-free segfault.
adaptive-webui-19844
Chocobo1 7 years ago
parent
commit
f3603d05e7
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/base/bittorrent/session.cpp

2
src/base/bittorrent/session.cpp

@ -2217,8 +2217,6 @@ bool Session::findIncompleteFiles(TorrentInfo &torrentInfo, QString &savePath) c @@ -2217,8 +2217,6 @@ bool Session::findIncompleteFiles(TorrentInfo &torrentInfo, QString &savePath) c
found = true;
torrentInfo.renameFile(i, filePath + QB_EXT);
}
if ((i % 100) == 0)
qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
}
return found;

Loading…
Cancel
Save