This commit is contained in:
Arvid Norberg 2007-04-09 00:26:00 +00:00
parent 516d8b72f6
commit 2dea7f072c
1 changed files with 2 additions and 0 deletions

View File

@ -836,6 +836,8 @@ void upnp::on_expire(asio::error_code const& e)
void upnp::close()
{
boost::mutex::scoped_lock l(m_mutex);
m_refresh_timer.cancel();
m_broadcast_timer.cancel();
m_closing = true;
m_socket.close();