sharedpv simplify logic

duh... always empty() after clear()
This commit is contained in:
Michael Davidsaver
2018-09-17 13:33:06 -07:00
parent 52e0bd09f8
commit 293dd3c2e9

View File

@ -264,10 +264,9 @@ void SharedPV::close(bool destroy)
puts.clear();
rpcs.clear();
monitors.clear();
bool wasempty = channels.empty();
channels.clear();
if(!wasempty && channels.empty())
if(!channels.empty())
p_handler = handler;
channels.clear();
}
}
FOR_EACH(xputs_t::iterator, it, end, p_put) {