BugFix: prevent visitors for failed sources. Avoid duplicate list of

source ids.
This commit is contained in:
brunoherbelin
2020-10-10 15:16:47 +02:00
parent 22011ffd54
commit c0e135993c
7 changed files with 31 additions and 30 deletions

View File

@@ -393,7 +393,8 @@ void DeviceSource::setDevice(const std::string &devicename)
void DeviceSource::accept(Visitor& v)
{
Source::accept(v);
v.visit(*this);
if (!failed())
v.visit(*this);
}
bool DeviceSource::failed() const