Remove work from libboostasio example as it keeps the service alive even after everything is closed.

The example now terminates properly.
This commit is contained in:
tilsche 2018-03-12 11:57:53 +01:00
parent cf7d2e49ff
commit 8a6adae8e6
1 changed files with 0 additions and 3 deletions

View File

@ -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);