aboutsummaryrefslogtreecommitdiffstats
path: root/include/crow/socket_adaptors.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/crow/socket_adaptors.h')
-rw-r--r--include/crow/socket_adaptors.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crow/socket_adaptors.h b/include/crow/socket_adaptors.h
index 901117f..eda4b4c 100644
--- a/include/crow/socket_adaptors.h
+++ b/include/crow/socket_adaptors.h
@@ -19,7 +19,7 @@ namespace crow
boost::asio::io_service& get_io_service()
{
- return socket_.get_io_service();
+ return (boost::asio::io_context&) socket_.get_executor().context();
}
tcp::socket& raw_socket()