0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 15:30:52 +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 string_view &fmt,
const va_rtti &ap) const va_rtti &ap)
{ {
if(!is_main_thread()) if(!is_main_thread() && likely(ios::available()))
{ {
vlog_threadsafe(log, lev, fmt, ap); vlog_threadsafe(log, lev, fmt, ap);
return; return;