Fixing segfault
authorslindal <slindal@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Nov 2009 14:53:20 +0000 (14:53 +0000)
committerslindal <slindal@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Nov 2009 14:53:20 +0000 (14:53 +0000)
HLT/BASE/AliHLTHOMERManager.cxx

index 4ee8077..6d462b2 100644 (file)
@@ -291,11 +291,14 @@ Int_t AliHLTHOMERManager::ConnectHOMER( TString detector ){
       }\r
       \r
       // -- Remove reader\r
+      fReaderList->RemoveLast();\r
+\r
       if ( reader )\r
        fLibManager->DeleteReader( reader );\r
       reader = NULL;\r
       \r
-      fReaderList->RemoveLast();\r
+      HLTInfo(Form("Removed source %d,  %s : %d from sourceList", idx, sourceHostnames[idx], sourcePorts[idx]));\r
+      \r
     } \r
     else {\r
       // -- Connection succeded\r