Small synchronization fix.
This commit is contained in:
parent
a05dcbfe80
commit
5068bf06eb
@ -163,6 +163,8 @@ static inline std::filebuf *terminal_connect(FILE *const fs, std::ostream &os)
|
||||
|
||||
static void terminal_shutdown(void)
|
||||
{
|
||||
MUtils::Internal::CSLocker lock(g_terminal_lock);
|
||||
|
||||
if (g_terminal_attached)
|
||||
{
|
||||
g_fileBuf_stdout.reset();
|
||||
|
Loading…
Reference in New Issue
Block a user