fixed torrent_deleted_alert to not dead-lock
This commit is contained in:
parent
2b86528e50
commit
942c4e0a7c
|
@ -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);
|
||||
|
||||
|
|
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue