mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Remove assert and fix logging
This commit is contained in:
@@ -308,9 +308,7 @@ Servent::isValidExternalIP( const QHostAddress& addr )
|
|||||||
void
|
void
|
||||||
Servent::registerOffer( const QString& key, Connection* conn )
|
Servent::registerOffer( const QString& key, Connection* conn )
|
||||||
{
|
{
|
||||||
// The registered connection should always be != NULL
|
m_offers[key] = QPointer<Connection>(conn);
|
||||||
Q_ASSERT( conn != NULL );
|
|
||||||
m_offers[key] = QPointer<Connection>(conn);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -928,7 +926,7 @@ Servent::connectToPeer(const peerinfo_ptr& peerInfo, const QList<SipInfo>& sipIn
|
|||||||
void
|
void
|
||||||
Servent::connectToPeerFailed( const peerinfo_ptr& peerInfo, QList<SipInfo> sipInfo, Connection* conn, QTcpSocketExtra* socket )
|
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();
|
bool connIsNull = socket->_conn.isNull();
|
||||||
cleanupSocket( socket );
|
cleanupSocket( socket );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user