mirror of
https://github.com/atom/atom.git
synced 2026-01-22 05:17:57 -05:00
Terminate task before recreating
This commit is contained in:
@@ -346,6 +346,8 @@ class Git
|
||||
# updates the relevant properties.
|
||||
refreshStatus: ->
|
||||
handlerPath = require.resolve('./repository-status-handler')
|
||||
|
||||
@statusTask?.terminate()
|
||||
@statusTask = Task.once handlerPath, @getPath(), ({statuses, upstream, branch, submodules}) =>
|
||||
statusesUnchanged = _.isEqual(statuses, @statuses) and
|
||||
_.isEqual(upstream, @upstream) and
|
||||
|
||||
Reference in New Issue
Block a user