From 6068da12302da5e07ba2ca7efa59d8bf65057aa9 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Sat, 16 Nov 2024 22:15:16 +0800 Subject: [PATCH] fix: [dictserver] some word does not got displayed --- src/dict/dictserver.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dict/dictserver.cc b/src/dict/dictserver.cc index f32473e9..720cd323 100644 --- a/src/dict/dictserver.cc +++ b/src/dict/dictserver.cc @@ -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; }