From c328beed6809ce91cfadebd48ed9ef62bf45dbfc Mon Sep 17 00:00:00 2001 From: Daniel Schwen Date: Mon, 22 May 2017 17:12:10 -0600 Subject: [PATCH] Fix q.drain bug (#374) --- lib/RemoteSync.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/RemoteSync.coffee b/lib/RemoteSync.coffee index 618ec27..80292f1 100644 --- a/lib/RemoteSync.coffee +++ b/lib/RemoteSync.coffee @@ -112,6 +112,7 @@ class RemoteSync uploadFolder: (dirPath)-> fs.traverseTree dirPath, @uploadFile.bind(@), => return not @isIgnore(dirPath) + , (->) initMonitor: ()-> _this = @ @@ -243,7 +244,9 @@ class RemoteSync fs.traverseTree dirPath, (path)=> @uploadFile(path) if isChangedPath(path) - , (path)=> return not @isIgnore(path) + , (path) => + return not @isIgnore(path) + , (->) createTransport: (host)-> if host.transport is 'scp' or host.transport is 'sftp'