From 57cd1e7c97f5f3bbdec1521782e4b1a012b5956b Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 30 Mar 2008 15:44:31 +0000 Subject: [PATCH] fixed #298. Generates a torrent_paused alert when there's no storage --- src/torrent.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/torrent.cpp b/src/torrent.cpp index 5365f38cd..aed52884d 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -3147,6 +3147,13 @@ namespace libtorrent m_storage->async_release_files( bind(&torrent::on_torrent_paused, shared_from_this(), _1, _2)); } + else + { + if (alerts().should_post(alert::warning)) + { + alerts().post_alert(torrent_paused_alert(get_handle(), "torrent paused")); + } + } } void torrent::resume()