server GET_FIELD fix onLastDisconnect

This commit is contained in:
Michael Davidsaver committed 2020-02-21 12:35:35 -08:00
1 parent 7d490dc69e
commit 5019744fa7
2 files changed
+17 -5

No files matched your search

+1 -2
View File
@@ -101,8 +101,7 @@ struct ServerIntrospectControl : public server::ConnectOp
return;
serv->acceptor_loop.call([this, &fn](){
if(auto oper = op.lock())
if(auto chan = oper->chan.lock())
chan->onClose = std::move(fn);
oper->onClose = std::move(fn);
});
}