forked from premiere/premiere-libtorrent
fix ~peer_server() to not throw
This commit is contained in:
parent
49ae7858a8
commit
77e473f35b
|
@ -97,8 +97,9 @@ struct peer_server
|
|||
|
||||
~peer_server()
|
||||
{
|
||||
m_acceptor.cancel();
|
||||
m_acceptor.close();
|
||||
error_code ignore;
|
||||
m_acceptor.cancel(ignore);
|
||||
m_acceptor.close(ignore);
|
||||
if (m_thread) m_thread->join();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue