This commit is contained in:
Kevin Sawicki
2013-04-18 20:16:49 -07:00
parent 53f03d1b30
commit 848761710e

View File

@@ -64,7 +64,7 @@ class Directory
subscribeToNativeChangeEvents: ->
@watchSubscription = pathWatcher.watch @path, (eventType) =>
@trigger "contents-changed" if eventType is "change"
unsubscribeFromNativeChangeEvents: ->
if @watchSubscription?
@watchSubscription.close()