summaryrefslogtreecommitdiff
path: root/src/lib/server.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-06-14 19:50:41 +0200
committerCarl Hetherington <cth@carlh.net>2024-06-23 19:51:28 +0200
commit321380eeb8a9ba4853a982558c9076d26aafdf82 (patch)
tree0a45b630eae75647569bab34b858e0513898a60f /src/lib/server.h
parentdbab45a8358d8a48043718872f2649fc24b1d9ef (diff)
Close socket when stopping the server.
Otherwise if we're calling e.g. Socket::run() the server's run() will not terminate on stop().
Diffstat (limited to 'src/lib/server.h')
-rw-r--r--src/lib/server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/server.h b/src/lib/server.h
index 0b1950aa7..7e42f6cbd 100644
--- a/src/lib/server.h
+++ b/src/lib/server.h
@@ -57,6 +57,7 @@ private:
boost::asio::io_service _io_service;
boost::asio::ip::tcp::acceptor _acceptor;
int _timeout;
+ std::weak_ptr<Socket> _socket;
};