KIO scheduler issue

Paulo Moura Guedes moura at kdewebdev.org
Fri Aug 19 00:43:39 BST 2005


Hi,

The following patch prevents a crash in KLinkStatus, but I don't know if it is 
correct. I would appreciate very much if someone tell me if it is, because it 
would made KLinkStatus a more useful application (#109483, #85575).

Index: kdelibs/kio/kio/scheduler.cpp
===================================================================
--- kdelibs/kio/kio/scheduler.cpp       (revision 438634)
+++ kdelibs/kio/kio/scheduler.cpp       (working copy)
@@ -626,8 +626,9 @@
     }

     if (!slaveList->removeRef(slave))
-       kdDebug(7006) << "Scheduler: BUG!! Slave died, but is NOT in 
slaveList!!!\n" << endl;
-    slave->deref(); // Delete slave
+        kdDebug(7006) << "Scheduler: BUG!! Slave " << slave << "/" << 
slave->slave_pid() << " died, but is NOT in slaveLis$
+    else
+        slave->deref(); // Delete slave
 }

 void Scheduler::slotCleanIdleSlaves()
===================================================================

Paulo




More information about the kde-core-devel mailing list