mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-28 01:28:53 +00:00
os: sanity check in Reporter::Xml_generator
With this check in place, one can safely construct an 'Xml_generator' even if the report is disabled. This relieves the user of the reporter from the need to distinguish enabled from disabled reports.
This commit is contained in:
parent
50ee91e738
commit
39e409f756
@ -146,7 +146,8 @@ class Genode::Reporter : Noncopyable
|
||||
reporter._xml_name.string(),
|
||||
func)
|
||||
{
|
||||
reporter._conn->report.submit(used());
|
||||
if (reporter.enabled())
|
||||
reporter._conn->report.submit(used());
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user