fix rateLimitTimespan issue #665

This commit is contained in:
Blu3train 2021-10-01 09:44:45 +02:00 committed by Akash Mozumdar
parent 953a537cb8
commit 663bb97fff

View File

@ -166,7 +166,8 @@ bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo)
tokens.push(token); // popped one too many tokens.push(token); // popped one too many
break; break;
} }
tokens.push(current); if (tokens.size() < tokenCount) tokens.push(current);
else return false;
return tokens.size() <= tokenCount; return tokens.size() <= tokenCount;
} }