From 8a6adae8e6c8bb6e5b1ffe32a6a196b8e9492816 Mon Sep 17 00:00:00 2001 From: tilsche Date: Mon, 12 Mar 2018 11:57:53 +0100 Subject: [PATCH] Remove work from libboostasio example as it keeps the service alive even after everything is closed. The example now terminates properly. --- examples/libboostasio.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/libboostasio.cpp b/examples/libboostasio.cpp index c71c9e3..d290382 100644 --- a/examples/libboostasio.cpp +++ b/examples/libboostasio.cpp @@ -30,9 +30,6 @@ int main() // note: we suggest use of 2 threads - normally one is fin (we are simply demonstrating thread safety). boost::asio::io_service service(4); - // create a work object to process our events. - boost::asio::io_service::work work(service); - // handler for libev AMQP::LibBoostAsioHandler handler(service);