If we're been destroyed then we won't have an async anymore.

This commit is contained in:
joshaber
2016-03-25 17:14:09 -04:00
parent 8ee1c3274b
commit fdebbf12ac

View File

@@ -493,7 +493,7 @@ class GitRepository
refreshStatus: ->
asyncRefresh = @async.refreshStatus().then =>
@statusesByPath = {}
@branch = @async.branch
@branch = @async?.branch
syncRefresh = new Promise (resolve, reject) =>
@handlerPath ?= require.resolve('./repository-status-handler')