Ignore:
Timestamp:
May 31, 2022, 4:38:51 PM (3 months ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncuploadcaster.cpp

    r9740 r9741  
    105105  }
    106106  if (_outSocket) {
    107     disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
    108107    disconnect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));
    109108    delete _outSocket;
     
    144143    emit(newMessage(msg.toLatin1(), true));
    145144
    146     if (_sslIgnoreErrors) {
    147       _outSocket->ignoreSslErrors();
    148       emit(newMessage("BNC ignores SSL errors as configured", true));
    149     }
    150145  }
    151146}
     
    219214  _outSocket = new QSslSocket();
    220215  _outSocket->setProxy(QNetworkProxy::NoProxy);
    221   _outSocket->setSslConfiguration(BNC_SSL_CONFIG);
     216
    222217  connect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));
    223   connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
     218
     219  if (_sslIgnoreErrors) {
     220    _outSocket->ignoreSslErrors();
     221    emit(newMessage("BNC ignores SSL errors during upload as configured", true));
     222  } else {
     223    _outSocket->setSslConfiguration(BNC_SSL_CONFIG);
     224    connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
     225  }
    224226
    225227  if (!_proxy) {
     
    336338void bncUploadCaster::slotSslSocketConnectionClosed() {
    337339  disconnect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));
    338   disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
    339340  emit(newMessage("slotSslSocketConnectionClosed", true));
    340341  if (_outSocket) {
Note: See TracChangeset for help on using the changeset viewer.