[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 203715] kio_imap4 eats randomly too much cpu
From: Allen Winter <winter () kde ! org>
Date: 2010-01-07 20:49:23
Message-ID: 20100107204923.3702E2F861 () immanuel ! kde ! org
[Download RAW message or body]
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 watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic