summaryrefslogtreecommitdiff
path: root/src/lib/server.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-05-29 23:04:44 +0100
committerCarl Hetherington <cth@carlh.net>2017-05-29 23:04:44 +0100
commit8b183eea3238cc2f25cf62e63d724a2d2d361ee7 (patch)
tree75a50d6f83e306e539c83e4d4403f4f2217f70af /src/lib/server.cc
parenteb75d656970d2195ff03f7d1bb57db959249cb96 (diff)
Fix hang in client_server tests.
Diffstat (limited to 'src/lib/server.cc')
-rw-r--r--src/lib/server.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/server.cc b/src/lib/server.cc
index 1fb3d7d47..722b1c811 100644
--- a/src/lib/server.cc
+++ b/src/lib/server.cc
@@ -40,7 +40,7 @@ Server::~Server ()
}
_acceptor.close ();
- _io_service.stop ();
+ stop ();
}
void
@@ -74,3 +74,9 @@ Server::handle_accept (shared_ptr<Socket> socket, boost::system::error_code cons
handle (socket);
start_accept ();
}
+
+void
+Server::stop ()
+{
+ _io_service.stop ();
+}