Index: trunk/BNC/src/upload/bncuploadcaster.cpp
===================================================================
--- trunk/BNC/src/upload/bncuploadcaster.cpp	(revision 9746)
+++ trunk/BNC/src/upload/bncuploadcaster.cpp	(revision 9748)
@@ -105,5 +105,4 @@
   }
   if (_outSocket) {
-    disconnect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));
     delete _outSocket;
   }
@@ -142,5 +141,4 @@
     }
     emit(newMessage(msg.toLatin1(), true));
-
   }
 }
@@ -194,12 +192,10 @@
   }
 
-  if (_outSocket) {
-    if( _outSocket->state() == QAbstractSocket::ConnectedState) {
-      return;
-    }
-    disconnect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));
-  }
-  delete _outSocket;
-  _outSocket = 0;
+  if (_outSocket != 0 &&
+      _outSocket->state() == QAbstractSocket::ConnectedState) {
+    return;
+  }
+
+  delete _outSocket; _outSocket = 0;
 
   double minDt = pow(2.0, _sOpenTrial);
@@ -217,9 +213,6 @@
   _outSocket->setProxy(QNetworkProxy::NoProxy);
 
-  connect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));
-
   if (_sslIgnoreErrors) {
     _outSocket->ignoreSslErrors();
-    emit(newMessage("BNC ignores SSL errors during upload as configured", true));
   } else {
     _outSocket->setSslConfiguration(BNC_SSL_CONFIG);
@@ -234,5 +227,5 @@
     if (_ntripVersion == "1") {
       emit(newMessage("No proxy support in Ntrip Version 1 upload!", true));
-      _outSocket->close();
+      delete _outSocket; _outSocket = 0;
       return;
     }
@@ -259,5 +252,5 @@
         int l = ans.indexOf("\r\n", 0);
         emit(newMessage("Proxy: Connection broken for " + _mountpoint.toLatin1() + ": "  + ans.left(l), true));
-        _outSocket->close();
+        delete _outSocket; _outSocket = 0;
         return;
       } else {
@@ -271,4 +264,5 @@
                           + QString("%1) ").arg(_casterOutPort).toLatin1()
                           + _outSocket->errorString().toLatin1(), true));
+          delete _outSocket; _outSocket = 0;
           return;
         } else {
@@ -290,5 +284,4 @@
         + "Connection: close\r\n" + "Transfer-Encoding: chunked\r\n\r\n";
   }
-  //cout << msg.toStdString().c_str();
   _outSocket->write(msg);
   _outSocket->waitForBytesWritten();
@@ -298,5 +291,5 @@
 
   if (ans.indexOf("200") == -1) {
-    _outSocket->close();
+    delete _outSocket; _outSocket = 0;
     int l = ans.indexOf("\r\n", 0);
     emit(newMessage("Broadcaster: Connection broken for " + _mountpoint.toLatin1() + ": " + ans.left(l), true));
@@ -319,4 +312,5 @@
               + QString("%1) ").arg(outPort).toLatin1()
               + _outSocket->errorString().toLatin1(), true));
+      delete _outSocket; _outSocket = 0;
       return false;
     } else {
@@ -331,4 +325,5 @@
               + QString("%1) ").arg(outPort).toLatin1()
               + _outSocket->errorString().toLatin1(), true));
+      delete _outSocket; _outSocket = 0;
       return false;
     }
@@ -338,13 +333,2 @@
 
 
-void bncUploadCaster::slotSslSocketConnectionClosed() {
-  disconnect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));
-  if (_outSocket) {
-    delete _outSocket;
-    _outSocket = 0;
-  }
-}
-
-
-
-
Index: trunk/BNC/src/upload/bncuploadcaster.h
===================================================================
--- trunk/BNC/src/upload/bncuploadcaster.h	(revision 9746)
+++ trunk/BNC/src/upload/bncuploadcaster.h	(revision 9748)
@@ -37,5 +37,4 @@
   void slotProxyAuthenticationRequired(const QNetworkProxy&, QAuthenticator*);
   void slotSslErrors(QList<QSslError>);
-  void slotSslSocketConnectionClosed();
 
  private:
