Guard all of annotateEvent with mutex

This commit is contained in:
tclinken 2020-04-10 13:03:15 -07:00
parent 01285f3374
commit 8ef5a04896
1 changed files with 1 additions and 1 deletions

View File

@ -389,9 +389,9 @@ public:
}
void annotateEvent(TraceEventFields& fields) {
MutexHolder holder(mutex);
if (!opened || fields.isAnnotated())
return;
MutexHolder holder(mutex);
if(localAddress.present()) {
fields.addField("Machine", formatIpPort(localAddress.get().ip, localAddress.get().port));
}