2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-19 14:22:23 +00:00

fix asio integration - skip promise_handler

This commit is contained in:
Oliver Kowalke
2016-01-31 16:14:14 +01:00
parent 62b2a52857
commit 284bdf6f78
6 changed files with 158 additions and 500 deletions

View File

@@ -69,9 +69,11 @@ void server( boost::asio::io_service & io_svc, unsigned short port) {
boost::fibers::asio::yield[ec]);
if ( ec) {
std::cerr << "fiber " << id << " : error occured : " << ec.message() << std::endl;
} else {
boost::fibers::fiber( session, socket).detach();
}
if ( io_svc.stopped() ) {
return;
}
boost::fibers::fiber( session, socket).detach();
}
std::cout << "fiber " << id << " terminates" << std::endl;
}