Index: trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp
===================================================================
--- trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp	(revision 6455)
+++ trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp	(revision 6456)
@@ -363,7 +363,5 @@
     if (itOrb.key() < _lastTime) {
       emit newOrbCorrections(itOrb.value());
-      if (_out) {
-        t_orbCorr::writeEpoch(_out, itOrb.value());
-      }
+      t_orbCorr::writeEpoch(_out, itOrb.value());
       itOrb.remove();
     } 
@@ -374,13 +372,7 @@
     if (itClk.key() < _lastTime) {
       emit newClkCorrections(itClk.value());
-      if (_out) {
-        t_clkCorr::writeEpoch(_out, itClk.value());
-      }
+      t_clkCorr::writeEpoch(_out, itClk.value());
       itClk.remove();
     } 
-  }
-
-  if (_out) {
-    _out->flush();
   }
 }
Index: trunk/BNC/src/satObs.cpp
===================================================================
--- trunk/BNC/src/satObs.cpp	(revision 6455)
+++ trunk/BNC/src/satObs.cpp	(revision 6456)
@@ -22,5 +22,10 @@
 ////////////////////////////////////////////////////////////////////////////
 void t_clkCorr::writeEpoch(std::ostream* out, const QList<t_clkCorr>& corrList) {
+  if (!out || corrList.size() == 0) {
+    return;
+  }
   *out << "CLOCK CORRECTIONS: " << corrList.size() << endl;
+
+  out->flush();
 }
 
@@ -44,5 +49,10 @@
 ////////////////////////////////////////////////////////////////////////////
 void t_orbCorr::writeEpoch(std::ostream* out, const QList<t_orbCorr>& corrList) {
+  if (!out || corrList.size() == 0) {
+    return;
+  }
   *out << "ORB CORRECTIONS: " << corrList.size() << endl;
+
+  out->flush();
 }
 
