construct::console: Fix counter possibly preempted by exception.

This commit is contained in:
Jason Volk 2022-07-21 11:32:13 -07:00
parent d28ca9d33c
commit 11c5562173
1 changed files with 1 additions and 2 deletions

View File

@ -344,7 +344,7 @@ construct::console::handle_line_bymodule()
int sync() override
{
// Console logs are suppressed starting from the first output.
if(!syncs)
if(syncs++ == 0)
ircd::log::console_disable();
const string_view str
@ -363,7 +363,6 @@ construct::console::handle_line_bymodule()
}
setp(pbase(), epptr());
syncs++;
return 0;
}