Small synchronization fix.

This commit is contained in:
LoRd_MuldeR 2015-08-09 21:34:31 +02:00
parent a05dcbfe80
commit 5068bf06eb

View File

@ -163,6 +163,8 @@ static inline std::filebuf *terminal_connect(FILE *const fs, std::ostream &os)
static void terminal_shutdown(void) static void terminal_shutdown(void)
{ {
MUtils::Internal::CSLocker lock(g_terminal_lock);
if (g_terminal_attached) if (g_terminal_attached)
{ {
g_fileBuf_stdout.reset(); g_fileBuf_stdout.reset();