- Timestamp:
- May 20, 2022, 11:59:32 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncuploadcaster.cpp
r9727 r9728 211 211 if (_outSocket->state() == QAbstractSocket::ConnectedState) { 212 212 return; 213 } else { 214 emit(newMessage( 215 "Broadcaster: No connection for " + _mountpoint.toLatin1(), true)); 216 } 217 } 218 delete _outSocket; 219 _outSocket = 0; 213 } 214 delete _outSocket; 215 _outSocket=0; 216 } 220 217 221 218 double minDt = pow(2.0, _sOpenTrial); … … 231 228 232 229 _outSocket = new QSslSocket(); 230 _outSocket->setProxy(QNetworkProxy::NoProxy); 233 231 _outSocket->setSslConfiguration(sslConfig); 234 _outSocket->setProxy(QNetworkProxy::NoProxy);232 235 233 connect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed())); 236 234 connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>))); … … 240 238 emit(newMessage("No proxy support in Ntrip Version 1 upload!", true)); 241 239 delete _outSocket; 242 _outSocket =0;240 _outSocket=0; 243 241 return; 244 242 } … … 265 263 "Proxy: Connection broken for " + _mountpoint.toLatin1() 266 264 + ": " + ans.left(ans.length() - 2), true)); 267 delete _outSocket;268 _outSocket =0;265 //delete _outSocket; 266 //_outSocket=0; 269 267 return; 270 268 } else { … … 281 279 + QString("%1) ").arg(_casterOutPort).toLatin1() 282 280 + _outSocket->errorString().toLatin1(), true)); 283 delete _outSocket;284 _outSocket =0;281 //delete _outSocket; 282 //_outSocket=0; 285 283 return; 286 284 } else { … … 314 312 315 313 if (ans.indexOf("200") == -1) { 316 delete _outSocket;317 _outSocket =0;314 //delete _outSocket; 315 //_outSocket=0; 318 316 emit(newMessage( 319 317 "Broadcaster: Connection broken for " + _mountpoint.toLatin1() + ": " … … 339 337 + QString("%1) ").arg(outPort).toLatin1() 340 338 + _outSocket->errorString().toLatin1(), true)); 341 delete _outSocket;342 _outSocket =0;339 //delete _outSocket; 340 //_outSocket=0; 343 341 return false; 344 342 } else { … … 353 351 + QString("%1) ").arg(outPort).toLatin1() 354 352 + _outSocket->errorString().toLatin1(), true)); 355 delete _outSocket;356 _outSocket =0;353 //delete _outSocket; 354 //_outSocket=0; 357 355 return false; 358 356 } … … 363 361 364 362 void bncUploadCaster::slotSslSocketConnectionClosed() { 363 disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>))); 365 364 emit(newMessage("slotSslSocketConnectionClosed", true)); 366 365 delete _outSocket; 367 366 _outSocket = 0; 368 disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>))); 369 } 370 371 372 373 367 } 368 369 370 371
Note:
See TracChangeset
for help on using the changeset viewer.