1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

Remove assert and fix logging

This commit is contained in:
Uwe L. Korn 2013-05-15 14:47:00 +02:00
parent 7799750a01
commit cf7bd1a9ae

View File

@ -308,9 +308,7 @@ Servent::isValidExternalIP( const QHostAddress& addr )
void
Servent::registerOffer( const QString& key, Connection* conn )
{
// The registered connection should always be != NULL
Q_ASSERT( conn != NULL );
m_offers[key] = QPointer<Connection>(conn);
m_offers[key] = QPointer<Connection>(conn);
}
@ -928,7 +926,7 @@ Servent::connectToPeer(const peerinfo_ptr& peerInfo, const QList<SipInfo>& sipIn
void
Servent::connectToPeerFailed( const peerinfo_ptr& peerInfo, QList<SipInfo> sipInfo, Connection* conn, QTcpSocketExtra* socket )
{
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Connecting to " << conn->peerIpAddress() << " failed";
tLog( LOGVERBOSE ) << Q_FUNC_INFO << "Connecting to " << socket->peerAddress().toString() << " failed: " << socket->errorString();
bool connIsNull = socket->_conn.isNull();
cleanupSocket( socket );