Skip to content

Commit

Permalink
Fix for #324 (uploadMirrors not working)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
laymance committed Oct 19, 2016
1 parent 7e6b5df commit 88b6495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/UploadListener.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 88b6495

Please sign in to comment.