Guard all of annotateEvent with mutex
This commit is contained in:
parent
01285f3374
commit
8ef5a04896
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue