diff options
Diffstat (limited to 'src/lib/server.cc')
| -rw-r--r-- | src/lib/server.cc | 8 |
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 (); +} |
