QxtWeb: clean up source device when destination is destroyed
This commit is contained in:
parent
ec2b347b19
commit
0fb01dd432
|
@ -620,6 +620,7 @@ void QxtHttpSessionManager::processEvents()
|
|||
QxtMetaObject::connect(device, SIGNAL(bytesWritten(qint64)), state.onBytesWritten, Qt::QueuedConnection);
|
||||
QxtMetaObject::connect(source, SIGNAL(readyRead()), state.onReadyRead, Qt::QueuedConnection);
|
||||
QxtMetaObject::connect(source, SIGNAL(aboutToClose()), state.onAboutToClose, Qt::QueuedConnection);
|
||||
QObject::connect(device, SIGNAL(destroyed()), source, SLOT(deleteLater()));
|
||||
|
||||
if (state.keepAlive)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user