summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-05-25 10:54:12 +0100
committerCarl Hetherington <cth@carlh.net>2017-05-25 10:54:12 +0100
commit10da8c6ef355d86cb3c0859f264d7d649dce4619 (patch)
tree5c50461ac48b83e29f210a16568b6087fa3f9cc5 /src/lib
parentf77ac3e26fc89e33d88f1f932a3f3f3bda329d75 (diff)
Attempt to fix crash on ~Server().
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/server.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/server.cc b/src/lib/server.cc
index 09e0a4bd0..5640843a0 100644
--- a/src/lib/server.cc
+++ b/src/lib/server.cc
@@ -36,6 +36,7 @@ Server::~Server ()
{
boost::mutex::scoped_lock lm (_mutex);
_terminate = true;
+ _acceptor.close ();
_io_service.stop ();
}