1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 07:19:42 +01: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 )
{
tLog() << Q_FUNC_INFO << "In acquiring version state, expecting version/nonce information";
if ( !retMap.contains( "version" ) || !retMap.contains( "nonce" ) )
tLog() << Q_FUNC_INFO << "In acquiring version state, expecting versioninformation";
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();
return;
}
@ -296,12 +296,14 @@ HatchetSipPlugin::messageReceived( const QByteArray &msg )
return;
}
/*
if ( retMap[ "nonce" ].toString() != m_uuid )
{
tLog() << Q_FUNC_INFO << "Failed to validate nonce";
disconnectPlugin();
return;
}
*/
m_version = ver;