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:
parent
cf7d2e49ff
commit
8a6adae8e6
|
|
@ -30,9 +30,6 @@ int main()
|
||||||
// note: we suggest use of 2 threads - normally one is fin (we are simply demonstrating thread safety).
|
// note: we suggest use of 2 threads - normally one is fin (we are simply demonstrating thread safety).
|
||||||
boost::asio::io_service service(4);
|
boost::asio::io_service service(4);
|
||||||
|
|
||||||
// create a work object to process our events.
|
|
||||||
boost::asio::io_service::work work(service);
|
|
||||||
|
|
||||||
// handler for libev
|
// handler for libev
|
||||||
AMQP::LibBoostAsioHandler handler(service);
|
AMQP::LibBoostAsioHandler handler(service);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue