Ignore:
Timestamp:
May 20, 2022, 11:13:45 AM (2 years ago)
Author:
stuerze
Message:

minor changes to test ssl

File:
1 edited

Legend:

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

    r9726 r9727  
    123123 ////////////////////////////////////////////////////////////////////////////
    124124void bncUploadCaster::slotSslErrors(QList<QSslError> errors) {
     125  emit(newMessage("slotSslErrors", true));
    125126  QString msg = "SSL Error: ";
    126127  if (_outSocket) {
     
    232233  _outSocket->setSslConfiguration(sslConfig);
    233234  _outSocket->setProxy(QNetworkProxy::NoProxy);
     235  connect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));
    234236  connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
    235237
     
    360362
    361363
    362 
    363 
    364 
    365 
    366 
     364void bncUploadCaster::slotSslSocketConnectionClosed() {
     365  emit(newMessage("slotSslSocketConnectionClosed", true));
     366  delete _outSocket;
     367  _outSocket = 0;
     368  disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
     369}
     370
     371
     372
     373
Note: See TracChangeset for help on using the changeset viewer.