Browse Source

Fix possible crash when deleting a torrent just after pausing it

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
daff6dce4c
  1. 4
      src/bittorrent.cpp

4
src/bittorrent.cpp

@ -2002,7 +2002,9 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { @@ -2002,7 +2002,9 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
}
#endif
else if (torrent_paused_alert* p = dynamic_cast<torrent_paused_alert*>(a.get())) {
p->handle.save_resume_data();
if(p->handle.is_valid()) {
p->handle.save_resume_data();
}
}
else if (tracker_error_alert* p = dynamic_cast<tracker_error_alert*>(a.get())) {
// Level: fatal

Loading…
Cancel
Save