mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 08:54: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;
|
||||
{
|
||||
LOCK(ttMutex);
|
||||
if (buffer.size() == 0) return;
|
||||
if (buffer.size() < maxBufferSize && GetTickCount() - timestamp < flushDelay) return;
|
||||
sentence = buffer;
|
||||
buffer.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user