From 810ce884fbfbce6c519944ae25707be7f74c0f79 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 26 Apr 2011 16:26:53 +0000 Subject: [PATCH] always post cache_flushed_alert when removing a torrent --- src/torrent.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/torrent.cpp b/src/torrent.cpp index 40e180a2d..06c90a8df 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -3081,6 +3081,11 @@ namespace libtorrent m_storage->async_release_files( boost::bind(&torrent::on_cache_flushed, shared_from_this(), _1, _2)); } + else + { + if (alerts().should_post()) + alerts().post_alert(cache_flushed_alert(get_handle())); + } dequeue_torrent_check();