fix assert when removing a torrent

This commit is contained in:
Arvid Norberg 2011-04-02 20:05:44 +00:00
parent 56ab4db2e7
commit 572f176f99
1 changed files with 1 additions and 1 deletions

View File

@ -4184,8 +4184,8 @@ namespace aux {
if (m_alerts.should_post<torrent_removed_alert>()) if (m_alerts.should_post<torrent_removed_alert>())
m_alerts.post_alert(torrent_removed_alert(tptr->get_handle(), tptr->info_hash())); m_alerts.post_alert(torrent_removed_alert(tptr->get_handle(), tptr->info_hash()));
tptr->set_queue_position(-1);
tptr->abort(); tptr->abort();
tptr->set_queue_position(-1);
} }
void session_impl::remove_torrent_impl(boost::shared_ptr<torrent> tptr, int options) void session_impl::remove_torrent_impl(boost::shared_ptr<torrent> tptr, int options)