mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- Catch invalid_handle exception in savefastresume data
This commit is contained in:
parent
08fe5814c5
commit
27aff04f11
2 changed files with 10 additions and 7 deletions
|
@ -1124,8 +1124,10 @@ void Bittorrent::saveFastResumeData() {
|
|||
if (rda) {
|
||||
--num_resume_data;
|
||||
s->pop_alert();
|
||||
try {
|
||||
// Remove torrent from session
|
||||
s->remove_torrent(rda->handle);
|
||||
}catch(libtorrent::libtorrent_exception){}
|
||||
continue;
|
||||
}
|
||||
save_resume_data_alert const* rd = dynamic_cast<save_resume_data_alert const*>(a);
|
||||
|
|
|
@ -56,10 +56,11 @@ public:
|
|||
|
||||
~ReverseResolutionST() {
|
||||
stopped = true;
|
||||
if(isRunning())
|
||||
if(isRunning()) {
|
||||
resolver.cancel();
|
||||
wait();
|
||||
}
|
||||
}
|
||||
|
||||
void setIP(boost::asio::ip::tcp::endpoint &_ip) {
|
||||
ip = _ip;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue