diff --git a/docs/manual.rst b/docs/manual.rst index ba11cd937..144aa10bc 100644 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -226,9 +226,9 @@ The ``session`` class has the following synopsis:: size_t queue_size_limit_); void set_alert_dispatch(boost::function)> const& fun); - feed_handle session::add_feed(feed_settings const& feed); - void session::remove_feed(feed_handle h); - void session::get_feeds(std::vector& f) const; + feed_handle add_feed(feed_settings const& feed); + void remove_feed(feed_handle h); + void get_feeds(std::vector& f) const; void add_extension(boost::function< boost::shared_ptr(torrent*)> ext); @@ -1208,7 +1208,7 @@ add_feed() :: - feed_handle session::add_feed(feed_settings const& feed); + feed_handle add_feed(feed_settings const& feed); This adds an RSS feed to the session. The feed will be refreshed regularly and optionally add all torrents from the feed, as they @@ -1267,7 +1267,7 @@ remove_feed() :: - void session::remove_feed(feed_handle h); + void remove_feed(feed_handle h); Removes a feed from being watched by the session. When this call returns, the feed handle is invalid and won't refer @@ -1279,7 +1279,7 @@ get_feeds() :: - void session::get_feeds(std::vector& f) const; + void get_feeds(std::vector& f) const; Returns a list of all RSS feeds that are being watched by the session. diff --git a/src/session_impl.cpp b/src/session_impl.cpp index a35cad1d8..b58f9edce 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -1314,7 +1314,7 @@ namespace aux { void session_impl::trigger_auto_manage() { - if (m_pending_auto_manage) return; + if (m_pending_auto_manage || m_abort) return; m_pending_auto_manage = true; m_need_auto_manage = true;