Don't call flush_pending_log_callbacks while logging LD_NOCB messages.

Found by boboper.
This commit is contained in:
Robert Ransom
2010-12-11 04:41:35 -08:00
parent d166d18643
commit 4a9d60734c
+1 -1
View File
@@ -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;