| 549 | } |
| 550 | |
| 551 | void setup_async_stop_scopes() |
| 552 | { |
| 553 | stop_scope_local.reset(new AsioStopScope(*io_context(), async_stop_local(), [this]() { |
| 554 | OPENVPN_ASYNC_HANDLER; |
| 555 | session->graceful_stop(); |
| 556 | })); |
| 557 | |
| 558 | stop_scope_global.reset(new AsioStopScope(*io_context(), async_stop_global(), [this]() { |
| 559 | OPENVPN_ASYNC_HANDLER; |
| 560 | trigger_async_stop_local(); |
| 561 | })); |
| 562 | } |
| 563 | |
| 564 | private: |
| 565 | ClientState(const ClientState&) = delete; |
no test coverage detected