mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Don't call flush_pending_log_callbacks while logging LD_NOCB messages.
Found by boboper.
This commit is contained in:
+1
-1
@@ -280,7 +280,7 @@ logv(int severity, log_domain_mask_t domain, const char *funcname,
|
||||
assert(severity >= LOG_ERR && severity <= LOG_DEBUG);
|
||||
LOCK_LOGS();
|
||||
|
||||
if (smartlist_len(pending_cb_messages))
|
||||
if ((! (domain & LD_NOCB)) && smartlist_len(pending_cb_messages))
|
||||
flush_pending_log_callbacks();
|
||||
|
||||
lf = logfiles;
|
||||
|
||||
Reference in New Issue
Block a user