mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
fix: [dictserver] some word does not got displayed
This commit is contained in:
parent
9eaf488c8e
commit
6068da1230
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue