Index: /trunk/BNS/bns.cpp
===================================================================
--- /trunk/BNS/bns.cpp	(revision 835)
+++ /trunk/BNS/bns.cpp	(revision 836)
@@ -29,4 +29,7 @@
   this->setTerminationEnabled(true);
  
+  connect(this, SIGNAL(moveSocket(QThread*)), 
+          this, SLOT(slotMoveSocket(QThread*)));
+
   // Thread that handles broadcast ephemeris
   // ---------------------------------------
@@ -220,4 +223,9 @@
   // ------------
   while (true) {
+
+    if (_clkSocket && _clkSocket->thread() != currentThread()) {
+      emit(moveSocket(currentThread()));
+    }
+
     if (_clkSocket && _clkSocket->state() == QAbstractSocket::ConnectedState) {
       if ( _clkSocket->canReadLine()) {
@@ -311,2 +319,10 @@
   }
 }
+
+// 
+////////////////////////////////////////////////////////////////////////////
+void t_bns::slotMoveSocket(QThread* tt) {
+  _clkSocket->setParent(0);
+  _clkSocket->moveToThread(tt);
+  slotMessage("bns::slotMoveSocket");
+}
Index: /trunk/BNS/bns.h
===================================================================
--- /trunk/BNS/bns.h	(revision 835)
+++ /trunk/BNS/bns.h	(revision 836)
@@ -35,4 +35,5 @@
   void newMessage(const QByteArray msg);
   void error(const QByteArray msg);
+  void moveSocket(QThread* tt);
  
  private slots:
@@ -41,4 +42,5 @@
   void slotMessage(const QByteArray msg);
   void slotError(const QByteArray msg);
+  void slotMoveSocket(QThread* tt);
 
  private:
Index: /trunk/BNS/bns.pro
===================================================================
--- /trunk/BNS/bns.pro	(revision 835)
+++ /trunk/BNS/bns.pro	(revision 836)
@@ -2,6 +2,6 @@
 # Switch to debug configuration
 # -----------------------------
-### CONFIG -= release
-### CONFIG += debug
+CONFIG -= release
+CONFIG += debug
 
 RESOURCES += bns.qrc
