os/reporter.h: Don't enable if connection fails

Operating Systems / Genode - Norman Feske [genode-labs.com] - 28 February 2014 03:11 UTC

If opening a report session fails (for example because of invalid session arguments) and an exception is thrown during the session construction, the report would wrongly keep the enabled state. By moving the assignment of the state after the construction, the report stays disabled as it should be.

4c45f34 os/reporter.h: Don't enable if connection fails
os/include/os/reporter.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Upstream: github.com


  • Share