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