sharedpv simplify logic
duh... always empty() after clear()
This commit is contained in:
1 parent
52e0bd09f8
commit
293dd3c2e9
1 file changed
+2
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user