pva server: keep ChannelRequester alive

This commit is contained in:
Michael Davidsaver
2017-07-14 13:36:48 +02:00
parent 392fcc0bdc
commit 8cf56711fd
3 changed files with 9 additions and 2 deletions

View File

@@ -801,7 +801,7 @@ void ServerChannelRequesterImpl::channelCreated(const Status& status, Channel::s
pvAccessID sid = casTransport->preallocateChannelSID();
try
{
serverChannel.reset(new ServerChannelImpl(channel, _cid, sid, _css));
serverChannel.reset(new ServerChannelImpl(channel, shared_from_this(), _cid, sid, _css));
// ack allocation and register
casTransport->registerChannel(sid, serverChannel);