Create secondary sockets for sending nested events

This commit is contained in:
Robbert van der Helm
2020-10-26 12:13:27 +01:00
parent d82f8463d9
commit 2f6883977f
2 changed files with 26 additions and 10 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ EventHandler::EventHandler(
boost::asio::io_context& io_context,
boost::asio::local::stream_protocol::endpoint endpoint,
bool listen)
: endpoint(endpoint), socket(io_context) {
: io_context(io_context), endpoint(endpoint), socket(io_context) {
if (listen) {
fs::create_directories(fs::path(endpoint.path()).parent_path());
acceptor.emplace(io_context, endpoint);