lsd close fix

This commit is contained in:
Arvid Norberg 2007-10-26 01:27:34 +00:00
parent 636d5f2005
commit 33e8b670fc
1 changed files with 3 additions and 1 deletions

View File

@ -183,6 +183,8 @@ void lsd::on_announce(udp::endpoint const& from, char* buffer
void lsd::close()
{
m_socket.close();
asio::error_code ec;
m_socket.close(ec);
m_broadcast_timer.cancel();
}