forked from Public-Mirror/Textractor
that was embarassing
This commit is contained in:
parent
967f75a5ec
commit
59be83eee8
@ -27,6 +27,7 @@ void TextThread::Flush()
|
|||||||
std::wstring sentence;
|
std::wstring sentence;
|
||||||
{
|
{
|
||||||
LOCK(ttMutex);
|
LOCK(ttMutex);
|
||||||
|
if (buffer.size() == 0) return;
|
||||||
if (buffer.size() < maxBufferSize && GetTickCount() - timestamp < flushDelay) return;
|
if (buffer.size() < maxBufferSize && GetTickCount() - timestamp < flushDelay) return;
|
||||||
sentence = buffer;
|
sentence = buffer;
|
||||||
buffer.clear();
|
buffer.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user