mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-24 01:14:12 +08:00
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