client: ensure worker is joined on close()

This commit is contained in:
Michael Davidsaver
2020-04-04 06:46:11 -07:00
parent 9971b2ceec
commit d852758b7b
3 changed files with 16 additions and 1 deletions
+5
View File
@@ -378,6 +378,11 @@ void Context::Pvt::close()
conn->cleanup();
}
});
tcp_loop.join();
// ensure any in-progress callbacks have completed
manager.sync();
}
void Context::Pvt::poke()