Index: trunk/BNS/bnseph.cpp
===================================================================
--- trunk/BNS/bnseph.cpp	(revision 782)
+++ trunk/BNS/bnseph.cpp	(revision 783)
@@ -56,4 +56,8 @@
   else {
     while (true) {
+      if (_socket->state() != QAbstractSocket::ConnectedState) {
+        emit(error("bnseph::not connected"));
+        break;
+      }
       if (_socket->canReadLine()) {
         readEph();
@@ -144,7 +148,4 @@
   }
 
-      cout << "before emit: " << ep->prn.toAscii().data() << " "
-           << ep->GPSweek << " " << ep->TOC << endl;
-
   emit(newEph(ep));
 }
