Skip to content
Snippets Groups Projects
Commit 5b703b2e authored by Benny Baumann's avatar Benny Baumann
Browse files

fix: Stop I/O handling before forwarding the dtor notification

parent e55781e7
No related branches found
No related tags found
1 merge request!1First unit tests
......@@ -160,11 +160,11 @@ tcp_client::tcp_client(
{}
tcp_client::~tcp_client() {
if (destructor_cb != nullptr) {
io.stop();
if (destructor_cb) {
destructor_cb(exit_status_t::NO_ERROR);
}
io.stop();
}
void tcp_client::write_data(const std::string &data) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment