1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 13:47:26 +02:00

Fix up nonce expectations

This commit is contained in:
Jeff Mitchell
2014-03-01 08:39:15 -05:00
parent ae9fd7bb0f
commit 73f4747028

View File

@@ -280,10 +280,10 @@ HatchetSipPlugin::messageReceived( const QByteArray &msg )
if ( m_sipState == AcquiringVersion ) if ( m_sipState == AcquiringVersion )
{ {
tLog() << Q_FUNC_INFO << "In acquiring version state, expecting version/nonce information"; tLog() << Q_FUNC_INFO << "In acquiring version state, expecting versioninformation";
if ( !retMap.contains( "version" ) || !retMap.contains( "nonce" ) ) if ( !retMap.contains( "version" ) )
{ {
tLog() << Q_FUNC_INFO << "Failed to acquire version or nonce information"; tLog() << Q_FUNC_INFO << "Failed to acquire version information";
disconnectPlugin(); disconnectPlugin();
return; return;
} }
@@ -296,12 +296,14 @@ HatchetSipPlugin::messageReceived( const QByteArray &msg )
return; return;
} }
/*
if ( retMap[ "nonce" ].toString() != m_uuid ) if ( retMap[ "nonce" ].toString() != m_uuid )
{ {
tLog() << Q_FUNC_INFO << "Failed to validate nonce"; tLog() << Q_FUNC_INFO << "Failed to validate nonce";
disconnectPlugin(); disconnectPlugin();
return; return;
} }
*/
m_version = ver; m_version = ver;