Skip to content

Commit b82e702

Browse files
committed
fix #143
1 parent 94f2fc4 commit b82e702

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.coffee

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ initProject = (projectPaths)->
3030

3131
for projectPath in projectPaths
3232
projectPath = fs.realpathSync(projectPath)
33+
continue if projectDict[projectPath]
3334
RemoteSync ?= require "./lib/RemoteSync"
34-
projectDict[projectPath] ?= RemoteSync.create(projectPath)
35+
obj = RemoteSync.create(projectPath)
36+
projectDict[projectPath] = obj if obj
3537

3638
handleEvent = (e, cmd)->
3739
[projectPath, fullPath] = getEventPath(e)

0 commit comments

Comments
 (0)