]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGPP/AliTaskCDBconnect.cxx
Fix building task directory name
[u/mrichter/AliRoot.git] / PWGPP / AliTaskCDBconnect.cxx
index 9969404d3ce1a851d91432641e98d646804123a4..30f63d66fb6907d34b084f63c9bc148ab3695d4b 100644 (file)
@@ -87,8 +87,8 @@ void AliTaskCDBconnect::CreateOutputObjects()
   //  try to init before the analysis set
   AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
   if (!mgr) AliFatal("No analysis manager");
-  if ( fRun>0 && mgr->IsProofMode() ) { 
-    // in the proof mode the initialization done in the constructor is not available
+  if ( fRun>0 && !fGRPManager) {
+    // in the proof or plugin mode the initialization done in the constructor is not available
     InitGRP();
   }
   else {