fix for bug #66294
[u/mrichter/AliRoot.git] / SHUTTLE / AliShuttleTrigger.cxx
index e4225b9..1f10af5 100644 (file)
@@ -217,7 +217,7 @@ void AliShuttleTrigger::CheckTerminate()
        if (strlen(fConfig->GetTerminateFilePath()) == 0)
                return;
 
-       if (gSystem->AccessPathName(fConfig->GetTerminateFilePath()))
+       if (gSystem->AccessPathName(fConfig->GetTerminateFilePath()) == kFALSE)
        {
                AliInfo("Terminate file exists. Terminating Shuttle...");
                fTerminate = kTRUE;
@@ -287,6 +287,7 @@ void AliShuttleTrigger::Run() {
                }
        
                Collect();
+               CheckTerminate();
        }
 
        delete notifier;