blob: f67c262d7ec3f2a1645ace15e8683d8b6e0e86d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- a/tcpserver/TCPServer.cpp
+++ b/tcpserver/TCPServer.cpp
@@ -59,7 +59,7 @@ namespace tcp {
// Post a call to the stop function so that server::stop() is safe to call
// from any thread.
flghandle_stop_Completed=false;
- boost::asio::post([this] { handle_stop(); });
+ boost::asio::post(io_context_, [this] { handle_stop(); });
}
void CTCPServerInt::handle_stop()
|