0
0
Fork 0
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:
Jason Volk 2018-12-28 13:18:34 -08:00
parent b50bb8e49b
commit d786079fca

View file

@ -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;