fixed torrent_deleted_alert to not dead-lock

This commit is contained in:
Arvid Norberg 2010-01-23 22:42:48 +00:00
parent 2b86528e50
commit 942c4e0a7c
2 changed files with 3 additions and 3 deletions

View File

@ -667,9 +667,9 @@ namespace libtorrent
struct TORRENT_EXPORT torrent_deleted_alert: torrent_alert
{
torrent_deleted_alert(torrent_handle const& h)
torrent_deleted_alert(torrent_handle const& h, sha1_hash const& ih)
: torrent_alert(h)
{ info_hash = h.info_hash(); }
{ info_hash = ih; }
TORRENT_DEFINE_ALERT(torrent_deleted_alert);

View File

@ -2398,7 +2398,7 @@ namespace libtorrent
else
{
if (alerts().should_post<torrent_deleted_alert>())
alerts().post_alert(torrent_deleted_alert(get_handle()));
alerts().post_alert(torrent_deleted_alert(get_handle(), m_torrent_file->info_hash()));
}
}