fix: [dictserver] some word does not got displayed

This commit is contained in:
YiFang Xiao 2024-11-16 22:15:16 +08:00
parent 9eaf488c8e
commit 6068da1230

View file

@ -865,8 +865,7 @@ void DictServerArticleRequest::readData( QByteArray reply )
articleText += reply;
if ( reply.contains( ".\r\n" ) ) {
//discard all left message.
while ( !dictImpl->socket.readLine().isEmpty() ) {}
//discard all left message. maybe delete all the remaining data after `.\r\n`
emit finishedArticle( articleText );
return;
}