client.h minor

This commit is contained in:
Michael Davidsaver
2018-10-03 10:26:47 -07:00
parent d4f3abf461
commit e67e00c968
3 changed files with 5 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ struct RPCer : public pvac::detail::CallbackStorage,
operation_type::shared_pointer op;
pvac::ClientChannel::GetCallback *cb;
// 'event' may be modified as long as cb!=NULL
pvac::GetEvent event;
pvd::PVStructure::const_shared_pointer args;
@@ -110,6 +111,7 @@ struct RPCer : public pvac::detail::CallbackStorage,
{
std::tr1::shared_ptr<RPCer> keepalive(internal_shared_from_this());
CallbackGuard G(*this);
if(!cb) return;
event.message = "Disconnect";
callEvent(G);