call TAliMDC::SetStopLoop() when SMI STOP command arrives to stop
authorrdm <rdm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Dec 2003 03:35:17 +0000 (03:35 +0000)
committerrdm <rdm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Dec 2003 03:35:17 +0000 (03:35 +0000)
correclty alimdc (called before erroneously AliMDC::StopLoop()
which was only testing if loop had to be terminated, duh).

RAW/alimdc.cxx

index 622b468f22fd9a8b2bafde5474fa882a9e56200e..ed8806a9fc24f1bcafc44fb8897446c187bb5690 100644 (file)
@@ -47,7 +47,7 @@ void SMI_handle_command()
       strcpy(param, "");
    }
    if (strcmp(action, "STOP") == 0) {
-      gAliMDC->StopLoop();
+      if (gAliMDC) gAliMDC->SetStopLoop();
    }
    smi_set_state("RUNNING");
 }