|
|
@ -796,6 +796,18 @@ Scheduler::_assignJobToSlave(TDEIO::Slave *slave, SimpleJob *job)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// kdDebug(7006) << "_assignJobToSlave( " << job << ", " << slave << ")" << endl;
|
|
|
|
// kdDebug(7006) << "_assignJobToSlave( " << job << ", " << slave << ")" << endl;
|
|
|
|
TQString dummy;
|
|
|
|
TQString dummy;
|
|
|
|
|
|
|
|
if (!job)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
kdDebug(7006) << "_assignJobToSlave(): ERROR, non-existing job." << endl;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!slave)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
kdDebug(7006) << "_assignJobToSlave(): ERROR, non-existing slave." << endl;
|
|
|
|
|
|
|
|
job->kill();
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ((slave->slaveProtocol() != KProtocolManager::slaveProtocol( job->url(), dummy ))
|
|
|
|
if ((slave->slaveProtocol() != KProtocolManager::slaveProtocol( job->url(), dummy ))
|
|
|
|
||
|
|
|
|
||
|
|
|
|
(!newJobs.removeRef(job)))
|
|
|
|
(!newJobs.removeRef(job)))
|
|
|
|