added integer version defines, fixed a bug which appeared when session was closing, removed an old member function declaration from torrent_handle

This commit is contained in:
Arvid Norberg 2006-07-18 16:29:35 +00:00
parent 5018c5a987
commit 3763b600e4
3 changed files with 7 additions and 14 deletions

View File

@ -253,7 +253,6 @@ namespace libtorrent
// marks the file with the given index as filtered
// it will not be downloaded
void filter_file(int index, bool filter) const;
void filter_files(std::vector<bool> const& files) const;
// set the interface to bind outgoing connections

View File

@ -33,6 +33,9 @@ POSSIBILITY OF SUCH DAMAGE.
#ifndef TORRENT_VERSION_HPP_INCLUDED
#define TORRENT_VERSION_HPP_INCLUDED
#define LIBTORRENT_VERSION_MAJOR 0
#define LIBTORRENT_VERSION_MINOR 10
#define LIBTORRENT_VERSION "0.10.0.0"
#endif

View File

@ -996,21 +996,12 @@ namespace libtorrent { namespace detail
assert(m_abort);
m_abort = true;
for (connection_map::iterator i = m_connections.begin();
i != m_connections.end(); ++i)
{
i->second->disconnect();
}
m_connections.clear();
while (!m_connections.empty())
m_connections.begin()->second->disconnect();
for (connection_map::iterator i = m_half_open.begin();
i != m_half_open.end(); ++i)
{
i->second->disconnect();
}
while (!m_half_open.empty())
m_half_open.begin()->second->disconnect();
m_half_open.clear();
m_connection_queue.clear();
#ifndef NDEBUG