Set status to Idle when download is over

This commit is contained in:
Pablo Carranza Velez 2016-01-21 10:52:36 -03:00
parent c72ed80c77
commit 5961be6ffb
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] * Set GOARM separately for each architecture [Pablo]
* Add armv5 (armel) build [Trong] * Add armv5 (armel) build [Trong]
* Add OOM protection for the supervisor container, openvpn and connmand [Praneeth] * 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) device.updateState(download_progress: progress.percentage)
.then -> .then ->
logSystemEvent(logTypes.downloadAppSuccess, app) logSystemEvent(logTypes.downloadAppSuccess, app)
device.updateState(download_progress: null) device.updateState(status: 'Idle', download_progress: null)
docker.getImage(app.imageId).inspectAsync() docker.getImage(app.imageId).inspectAsync()
.catch (err) -> .catch (err) ->
logSystemEvent(logTypes.downloadAppError, app, err) logSystemEvent(logTypes.downloadAppError, app, err)