fixed torrent_deleted_alert to not dead-lock
This commit is contained in:
@@ -667,9 +667,9 @@ namespace libtorrent
|
|||||||
|
|
||||||
struct TORRENT_EXPORT torrent_deleted_alert: torrent_alert
|
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)
|
: torrent_alert(h)
|
||||||
{ info_hash = h.info_hash(); }
|
{ info_hash = ih; }
|
||||||
|
|
||||||
TORRENT_DEFINE_ALERT(torrent_deleted_alert);
|
TORRENT_DEFINE_ALERT(torrent_deleted_alert);
|
||||||
|
|
||||||
|
@@ -2398,7 +2398,7 @@ namespace libtorrent
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (alerts().should_post<torrent_deleted_alert>())
|
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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user