fixes for gcc-4.3
This commit is contained in:
parent
d0d2e59192
commit
8e22078402
@ -38,6 +38,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
#include "libtorrent/config.hpp"
|
#include "libtorrent/config.hpp"
|
||||||
#include "libtorrent/assert.hpp"
|
#include "libtorrent/assert.hpp"
|
||||||
|
|||||||
@ -33,6 +33,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "libtorrent/pch.hpp"
|
#include "libtorrent/pch.hpp"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <iostream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include "libtorrent/entry.hpp"
|
#include "libtorrent/entry.hpp"
|
||||||
#include "libtorrent/config.hpp"
|
#include "libtorrent/config.hpp"
|
||||||
|
|||||||
@ -183,7 +183,7 @@ void lsd::on_announce(udp::endpoint const& from, char* buffer
|
|||||||
|
|
||||||
void lsd::close()
|
void lsd::close()
|
||||||
{
|
{
|
||||||
m_broadcast_timer.cancel();
|
|
||||||
m_socket.close();
|
m_socket.close();
|
||||||
|
m_broadcast_timer.cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2317,8 +2317,6 @@ namespace detail
|
|||||||
void session_impl::stop_lsd()
|
void session_impl::stop_lsd()
|
||||||
{
|
{
|
||||||
mutex_t::scoped_lock l(m_mutex);
|
mutex_t::scoped_lock l(m_mutex);
|
||||||
if (m_lsd.get())
|
|
||||||
m_lsd->close();
|
|
||||||
m_lsd = 0;
|
m_lsd = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user