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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user