mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
Do not delete the Connection in Socket cleanup, we take care of this at another stage.
This commit is contained in:
@@ -799,23 +799,11 @@ Servent::cleanupSocket( QTcpSocketExtra *sock )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !sock->_conn.isNull() )
|
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
|
|
||||||
{
|
{
|
||||||
tLog() << "SocketError, connection is null";
|
tLog() << "SocketError, connection is null";
|
||||||
sock->deleteLater();
|
|
||||||
}
|
}
|
||||||
|
sock->deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user