fix SharedPV onLastDisconnect when not open()

This commit is contained in:
Michael Davidsaver
2020-07-31 15:36:01 -07:00
parent 67843eb392
commit 6a46e44da9
2 changed files with 25 additions and 5 deletions
+2 -4
View File
@@ -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);