Merge pull request #84 from resin-io/83-set-idle-after-download

Set status to Idle when download is over
This commit is contained in:
Pablo Carranza Vélez 2016-01-21 14:15:47 -03:00
commit d6f70a38a4
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
* On download start, set download_progress to 0. On finish, set state to Idle [Pablo]
* Set GOARM separately for each architecture [Pablo]
* Add armv5 (armel) build [Trong]
* Add OOM protection for the supervisor container, openvpn and connmand [Praneeth]

View File

@ -134,7 +134,7 @@ fetch = (app) ->
device.updateState(download_progress: progress.percentage)
.then ->
logSystemEvent(logTypes.downloadAppSuccess, app)
device.updateState(download_progress: null)
device.updateState(status: 'Idle', download_progress: null)
docker.getImage(app.imageId).inspectAsync()
.catch (err) ->
logSystemEvent(logTypes.downloadAppError, app, err)