Always fill source code query queue when performing a query.

Previous implementation made these two events separate.
This commit is contained in:
Bartosz Taudul 2022-10-13 18:14:19 +02:00
parent a85c0e18d2
commit fc85e46f31
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -3444,6 +3444,7 @@ void Worker::QuerySourceFile( const char* fn, const char* image )
{
if( image ) QueryDataTransfer( image, strlen( image ) + 1 );
QueryDataTransfer( fn, strlen( fn ) + 1 );
m_sourceCodeQuery.emplace_back( fn );
Query( ServerQuerySourceCode, 0 );
}
@ -8571,7 +8572,6 @@ void Worker::CacheSource( const StringRef& str, const StringIdx& image )
}
else if( execTime != 0 )
{
m_sourceCodeQuery.emplace_back( file );
QuerySourceFile( file, image.Active() ? GetString( image ) : nullptr );
}
}