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

View File

@ -33,6 +33,9 @@ POSSIBILITY OF SUCH DAMAGE.
#ifndef TORRENT_VERSION_HPP_INCLUDED #ifndef TORRENT_VERSION_HPP_INCLUDED
#define 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" #define LIBTORRENT_VERSION "0.10.0.0"
#endif #endif

View File

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