fixed #298. Generates a torrent_paused alert when there's no storage

This commit is contained in:
Arvid Norberg 2008-03-30 15:44:31 +00:00
parent 45a7329d5c
commit 57cd1e7c97
1 changed files with 7 additions and 0 deletions

View File

@ -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()