mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
If people reuse the same requestId, reassign it for them and print a
warning. Will cause problems if they are relying on the requestId to map to something, but in that case they'd have problems mapping multiple things to the same requestId in the first place...
This commit is contained in:
parent
9476c3a3de
commit
5f73c3fb0e
@ -199,8 +199,12 @@ InfoSystemWorker::getInfo( Tomahawk::InfoSystem::InfoRequestData requestData, ui
|
||||
|
||||
foundOne = true;
|
||||
|
||||
if ( allSources )
|
||||
if ( allSources || m_savedRequestMap.contains( requestData.requestId ) )
|
||||
{
|
||||
if ( m_savedRequestMap.contains( requestData.requestId ) )
|
||||
tDebug() << Q_FUNC_INFO << "Warning: reassigning requestId because it already exists";
|
||||
requestData.internalId = TomahawkUtils::infosystemRequestId();
|
||||
}
|
||||
else
|
||||
requestData.internalId = requestData.requestId;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user