| 397 | } |
| 398 | |
| 399 | void |
| 400 | destroyCont(InterceptPlugin::State *state) |
| 401 | { |
| 402 | if (state->net_vc_) { |
| 403 | TSVConnShutdown(state->net_vc_, 1, 1); |
| 404 | TSVConnClose(state->net_vc_); |
| 405 | state->net_vc_ = nullptr; |
| 406 | } |
| 407 | |
| 408 | if (state->cont_) { |
| 409 | if (state->timeout_action_) { |
| 410 | TSActionCancel(state->timeout_action_); |
| 411 | state->timeout_action_ = nullptr; |
| 412 | } |
| 413 | TSContDestroy(state->cont_); |
| 414 | state->cont_ = nullptr; |
| 415 | } |
| 416 | } |
| 417 | } // namespace |
no test coverage detected