fixed deadlock in udp_socket
This commit is contained in:
parent
ba8163ca9c
commit
74593d6014
|
@ -215,7 +215,6 @@ void udp_socket::unwrap(error_code const& e, char const* buf, int size)
|
||||||
void udp_socket::close()
|
void udp_socket::close()
|
||||||
{
|
{
|
||||||
TORRENT_ASSERT(m_magic == 0x1337);
|
TORRENT_ASSERT(m_magic == 0x1337);
|
||||||
mutex_t::scoped_lock l(m_mutex);
|
|
||||||
|
|
||||||
error_code ec;
|
error_code ec;
|
||||||
m_ipv4_sock.close(ec);
|
m_ipv4_sock.close(ec);
|
||||||
|
|
Loading…
Reference in New Issue