fix SharedPV onLastDisconnect when not open()
This commit is contained in:
+2
-4
@@ -370,10 +370,8 @@ void SharedPV::close()
|
||||
{
|
||||
Guard G(impl->lock);
|
||||
|
||||
if(!impl->current)
|
||||
return; // ignore double close()
|
||||
|
||||
impl->current = Value();
|
||||
if(impl->current)
|
||||
impl->current = Value();
|
||||
|
||||
impl->subscribers.clear();
|
||||
channels = std::move(impl->channels);
|
||||
|
||||
Reference in New Issue
Block a user