Commit 43cac10b authored by Nicolas Fella's avatar Nicolas Fella

[plugins/photo] Remove requests from queue when cancel packet is received

parent 2ca09a5e
Pipeline #5584 canceled with stage
......@@ -43,6 +43,10 @@ PhotoPlugin::~PhotoPlugin()
bool PhotoPlugin::receivePacket(const NetworkPacket& np)
{
if (np.get<bool>(QStringLiteral("cancel"))) {
requestedFiles.takeFirst();
}
if (requestedFiles.isEmpty() || !np.hasPayload()) {
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment