mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-28 23:23:56 +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,6 +146,7 @@ class Genode::Reporter : Noncopyable
|
|||||||
reporter._xml_name.string(),
|
reporter._xml_name.string(),
|
||||||
func)
|
func)
|
||||||
{
|
{
|
||||||
|
if (reporter.enabled())
|
||||||
reporter._conn->report.submit(used());
|
reporter._conn->report.submit(used());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user