Index: /trunk/BNS/bns.cpp
===================================================================
--- /trunk/BNS/bns.cpp	(revision 826)
+++ /trunk/BNS/bns.cpp	(revision 827)
@@ -28,9 +28,18 @@
 
   this->setTerminationEnabled(true);
- 
+
+  _bnseph    = 0; 
   _outSocket = 0;
   _clkSocket = 0;
 
+  // Server listening for rtnet results
+  // ----------------------------------
   QSettings settings;
+  _clkServer = new QTcpServer;
+  _clkServer->listen(QHostAddress::Any, settings.value("clkPort").toInt());
+
+  connect(_clkServer, SIGNAL(newConnection()),
+          this, SLOT(slotNewConnection()), Qt::DirectConnection);
+
   QString outFileName = settings.value("outFile").toString();
   if (outFileName.isEmpty()) {
@@ -206,12 +215,4 @@
           this, SLOT(slotError(const QByteArray)));
 
-  // Server listening for rtnet results
-  // ----------------------------------
-  QSettings settings;
-  _clkServer = new QTcpServer;
-  _clkServer->listen(QHostAddress::Any, settings.value("clkPort").toInt());
-
-  connect(_clkServer, SIGNAL(newConnection()),this, SLOT(slotNewConnection()));
-
   // Endless loop
   // ------------
