1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-24 09:49:42 +01:00

Do not delete the Connection in Socket cleanup, we take care of this at another stage.

This commit is contained in:
Uwe L. Korn 2013-05-17 19:14:05 +02:00
parent dfc5eab62d
commit e55b83914e

View File

@ -799,23 +799,11 @@ Servent::cleanupSocket( QTcpSocketExtra *sock )
return;
}
if ( !sock->_conn.isNull() )
{
Connection* conn = sock->_conn.data();
if ( !sock->_disowned )
{
// connection will delete if we already transferred ownership, otherwise:
sock->deleteLater();
}
conn->markAsFailed(); // will emit failed, then finished
}
else
if ( sock->_conn.isNull() )
{
tLog() << "SocketError, connection is null";
sock->deleteLater();
}
sock->deleteLater();
}
void