From 1ec721212d18ce5e5903af0fa35e5c8a0141dbde Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Mon, 8 Jul 2019 19:27:54 -0600 Subject: [PATCH] v3 async until --- core/file_transfer.js | 2 +- core/file_util.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/file_transfer.js b/core/file_transfer.js index 83dedc13..5f0138e2 100644 --- a/core/file_transfer.js +++ b/core/file_transfer.js @@ -205,7 +205,7 @@ exports.getModule = class TransferFileModule extends MenuModule { let tryDstPath; async.until( - () => movedOk, // until moved OK + (callback) => callback(null, movedOk), // until moved OK (cb) => { if(0 === renameIndex) { // try originally supplied path first diff --git a/core/file_util.js b/core/file_util.js index fdea4e45..56d8d5ac 100644 --- a/core/file_util.js +++ b/core/file_util.js @@ -38,7 +38,7 @@ function moveOrCopyFileWithCollisionHandling(src, dst, operation, cb) { } async.until( - () => opOk, // until moved OK + (callback) => callback(null, opOk), // until moved OK (cb) => { if(0 === renameIndex) { // try originally supplied path first