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 <algorithm>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
|
||||
#include "libtorrent/config.hpp"
|
||||
#include "libtorrent/assert.hpp"
|
||||
|
|
|
@ -33,6 +33,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
#include "libtorrent/pch.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include "libtorrent/entry.hpp"
|
||||
#include "libtorrent/config.hpp"
|
||||
|
|
|
@ -183,7 +183,7 @@ void lsd::on_announce(udp::endpoint const& from, char* buffer
|
|||
|
||||
void lsd::close()
|
||||
{
|
||||
m_broadcast_timer.cancel();
|
||||
m_socket.close();
|
||||
m_broadcast_timer.cancel();
|
||||
}
|
||||
|
||||
|
|
|
@ -2317,8 +2317,6 @@ namespace detail
|
|||
void session_impl::stop_lsd()
|
||||
{
|
||||
mutex_t::scoped_lock l(m_mutex);
|
||||
if (m_lsd.get())
|
||||
m_lsd->close();
|
||||
m_lsd = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue