Index: /trunk/BNC/combination/bnccomb.cpp
===================================================================
--- /trunk/BNC/combination/bnccomb.cpp	(revision 2918)
+++ /trunk/BNC/combination/bnccomb.cpp	(revision 2919)
@@ -93,7 +93,9 @@
 
   if (newEpoch->corr.find(newCorr->prn) != newEpoch->corr.end()) {
-    delete newEpoch->corr[newCorr->prn];     
+    newEpoch->corr[newCorr->prn]->readLine(line); // merge (multiple messages)
   }
-  newEpoch->corr[newCorr->prn] = newCorr;
+  else {
+    newEpoch->corr[newCorr->prn] = newCorr;
+  }
 
   processEpochsBefore(newCorr->tt);
@@ -104,5 +106,7 @@
 void bncComb::processEpochsBefore(const bncTime& time) {
 
-  const double waitTime = 10.0; // wait 10 seconds
+  const double waitTime = 20.0; // wait 10 seconds
+
+  bool corrProcessed = false;
 
   QMapIterator<QString, cmbAC*> itAC(_ACs);
@@ -122,9 +126,6 @@
           itCorr.next();
           t_corr* corr = itCorr.value();
-          cout << AC->name.toAscii().data() << " " 
-               << AC->mountPoint.toAscii().data() << " "
-               << corr->prn.toAscii().data() << " "
-               << corr->tt.datestr() << " " << corr->tt.timestr() << " "
-               << corr->iod << " " << corr->dClk << endl;
+          processSingleCorr(AC, corr);
+          corrProcessed = true;
         }
       }
@@ -136,3 +137,25 @@
     }
   }
+
+  if (corrProcessed) {
+    printResults();
+  }
 }
+
+// 
+////////////////////////////////////////////////////////////////////////////
+void bncComb::processSingleCorr(const cmbAC* AC, const t_corr* corr) {
+  cout << AC->name.toAscii().data() << " " 
+       << AC->mountPoint.toAscii().data() << " "
+       << corr->prn.toAscii().data() << " "
+       << corr->tt.datestr() << " " << corr->tt.timestr() << " "
+       << corr->iod << " " << corr->dClk << endl;
+}
+
+// 
+////////////////////////////////////////////////////////////////////////////
+void bncComb::printResults() const {
+
+  cout << "Corrections processed" << endl << endl;
+
+}
Index: /trunk/BNC/combination/bnccomb.h
===================================================================
--- /trunk/BNC/combination/bnccomb.h	(revision 2918)
+++ /trunk/BNC/combination/bnccomb.h	(revision 2919)
@@ -49,4 +49,6 @@
 
   void processEpochsBefore(const bncTime& time);
+  void processSingleCorr(const cmbAC* AC, const t_corr* corr);
+  void printResults() const;
 
   QMap<QString, cmbAC*> _ACs;   // Analytical Centers (key is mountpoint)
