protoserver: fixes QUERY_FILE_HASH hanging

same as 7fa5c4fe97cf27dae4bee3f0d1b96ca1940f6f68