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:
parent
dfc5eab62d
commit
e55b83914e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user