[Bug 203715] kio_imap4 eats randomly too much cpu
Allen Winter
winter at kde.org
Thu Jan 7 20:49:23 GMT 2010
https://bugs.kde.org/show_bug.cgi?id=203715
--- Comment #5 from Allen Winter <winter kde org> 2010-01-07 21:49:20 ---
Here is another, possibly better (untested) patch:
Index: imapparser.cpp
===================================================================
--- imapparser.cpp (revision 1071187)
+++ imapparser.cpp (working copy)
@@ -262,13 +262,12 @@ imapParser::clientAuthenticate ( KIO::Sl
}
cmd = sendCommand (CommandPtr(new imapCommand ("AUTHENTICATE",
firstCommand.toLatin1())));
- while ( true )
- {
+ int pl = 0;
+ while ( pl != -1 && !cmd->isComplete () ) {
//read the next line
- while (parseLoop() == 0) {
+ while ( ( pl = parseLoop() ) == 0) {
;
}
- if ( cmd->isComplete() ) break;
if (!continuation.isEmpty())
{
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list