From 88b64955e0f1b0ea929b9c0c6bc2778769b1a7d8 Mon Sep 17 00:00:00 2001 From: Rick Laymance Date: Wed, 19 Oct 2016 08:16:05 -0400 Subject: [PATCH] Fix for #324 (uploadMirrors not working) Adds checks of the transport to make sure they match before discarding - Checks all transport settings to allow for mirrors with only small changes (e.g. different port only) --- lib/UploadListener.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/UploadListener.coffee b/lib/UploadListener.coffee index 66d88eb..de76688 100644 --- a/lib/UploadListener.coffee +++ b/lib/UploadListener.coffee @@ -19,7 +19,7 @@ class UploadListener if @queue.length() task = @queue._tasks.head while task - if task.data.localFilePath == localFilePath && task.data.action == action + if task.data.localFilePath == localFilePath && task.data.action == action && task.data.transport.settings.transport == transport.settings.transport && task.data.transport.settings.hostname == transport.settings.hostname && task.data.transport.settings.port == transport.settings.port && task.data.transport.settings.target == transport.settings.target task.data.discard = true task = task.next