From 01656e1763257be6952d2651b14b38971d78f184 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 29 Feb 2016 16:24:55 -0500 Subject: [PATCH] Turn off a bunch more debugging in the dispatcher since it all seems to be working now. --- src/server/Dispatcher.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/server/Dispatcher.cpp b/src/server/Dispatcher.cpp index 750c4d8..528f4bb 100644 --- a/src/server/Dispatcher.cpp +++ b/src/server/Dispatcher.cpp @@ -41,7 +41,7 @@ void DProcess::startProc(){ connect(this, SIGNAL(error(QProcess::ProcessError)), this, SLOT(cmdError(QProcess::ProcessError)) ); } proclog.append("[Running Command: "+cmd+" ]"); - qDebug() << "Proc Starting:" << ID << cmd; + //qDebug() << "Proc Starting:" << ID << cmd; this->start(cmd); } @@ -146,15 +146,12 @@ DProcess* Dispatcher::createProcess(QString ID, QStringList cmds){ // === PRIVATE SLOTS === void Dispatcher::mkProcs(Dispatcher::PROC_QUEUE queue, DProcess *P){ - qDebug() << "mkProcs()"; - //DProcess *P = createProcess(ID, cmds); + //qDebug() << "mkProcs()"; //P->moveToThread(this->thread()); connect(P, SIGNAL(ProcFinished(QString)), this, SLOT(ProcFinished(QString)) ); QList list; if(!HASH.contains(queue)){ HASH.insert(queue, list); } //insert an empty list HASH[queue] << P; //add this proc to the end of the list - //if(queue==NO_QUEUE || HASH[queue].length()==1){ P->startProc(); } //go ahead and start it now - //QTimer::singleShot(20,this, SLOT(CheckQueues()) ); CheckQueues(); }