Attempt to fix crash on ~Server().
authorCarl Hetherington <cth@carlh.net>
Thu, 25 May 2017 09:54:12 +0000 (10:54 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 25 May 2017 09:54:12 +0000 (10:54 +0100)
src/lib/server.cc

index 09e0a4bd0524cf91c6a4db010859713bda2d081f..5640843a03daa8e23c827e64868aa0536d406831 100644 (file)
@@ -36,6 +36,7 @@ Server::~Server ()
 {
        boost::mutex::scoped_lock lm (_mutex);
        _terminate = true;
+       _acceptor.close ();
        _io_service.stop ();
 }