8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 15:23:02 +01:00

When no active trace sessions left, clear notification needs

This commit is contained in:
hvlad 2009-02-03 19:14:52 +00:00
parent 0afa4af870
commit da44ed0f49

View File

@ -206,6 +206,11 @@ void TraceManager::update_sessions()
trace_sessions.remove(i);
}
}
// nothing to trace, clear needs
if (trace_sessions.getCount() == 0) {
memset(&trace_needs, 0, sizeof(trace_needs));
}
}
void TraceManager::update_session(const TraceSession& session)