mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::log: Check if ios is available as a condition for vlog_threadsafe().
This commit is contained in:
parent
b50bb8e49b
commit
d786079fca
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ ircd::log::vlog::vlog(const log &log,
|
|||
const string_view &fmt,
|
||||
const va_rtti &ap)
|
||||
{
|
||||
if(!is_main_thread())
|
||||
if(!is_main_thread() && likely(ios::available()))
|
||||
{
|
||||
vlog_threadsafe(log, lev, fmt, ap);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue