fixed #298. Generates a torrent_paused alert when there's no storage
This commit is contained in:
parent
45a7329d5c
commit
57cd1e7c97
|
@ -3147,6 +3147,13 @@ namespace libtorrent
|
|||
m_storage->async_release_files(
|
||||
bind(&torrent::on_torrent_paused, shared_from_this(), _1, _2));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (alerts().should_post(alert::warning))
|
||||
{
|
||||
alerts().post_alert(torrent_paused_alert(get_handle(), "torrent paused"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void torrent::resume()
|
||||
|
|
Loading…
Reference in New Issue