From 33e8b670fc546421b260fec60ff4d5e3d6fbea8a Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 26 Oct 2007 01:27:34 +0000 Subject: [PATCH] lsd close fix --- src/lsd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lsd.cpp b/src/lsd.cpp index 44d7b19d4..6de085d99 100644 --- a/src/lsd.cpp +++ b/src/lsd.cpp @@ -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(); }