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();