From 59be83eee8155a84613ddca819c0e761b3197013 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Tue, 9 Oct 2018 02:22:59 -0400 Subject: [PATCH] that was embarassing --- GUI/host/textthread.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/GUI/host/textthread.cc b/GUI/host/textthread.cc index a9022fc..1bf3849 100644 --- a/GUI/host/textthread.cc +++ b/GUI/host/textthread.cc @@ -27,6 +27,7 @@ void TextThread::Flush() std::wstring sentence; { LOCK(ttMutex); + if (buffer.size() == 0) return; if (buffer.size() < maxBufferSize && GetTickCount() - timestamp < flushDelay) return; sentence = buffer; buffer.clear();