server: release bound callbacks on cleanup()

The now Dead Op may still be held by user code.
Ensure that cleanup() leaves that Op in a state
where it can be safely dtor()ed from any thread.
This commit is contained in:
Michael Davidsaver
2023-10-03 16:20:18 -07:00
parent c4327022c9
commit 9b099be0d8
5 changed files with 30 additions and 9 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ namespace pvxs { namespace impl {
DEFINE_LOGGER(connsetup, "pvxs.tcp.setup");
namespace {
struct ServerIntrospect : public ServerOp
struct ServerIntrospect final : public ServerOp
{
ServerIntrospect(const std::shared_ptr<ServerChan>& chan, uint32_t ioid)
:ServerOp(chan, ioid)