From 5961be6ffb7eff513f039039b03177bdd6c8c31e Mon Sep 17 00:00:00 2001 From: Pablo Carranza Velez Date: Thu, 21 Jan 2016 10:52:36 -0300 Subject: [PATCH] Set status to Idle when download is over --- CHANGELOG.md | 1 + src/application.coffee | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93575838..9691858f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] diff --git a/src/application.coffee b/src/application.coffee index 06ea7a2a..43985de0 100644 --- a/src/application.coffee +++ b/src/application.coffee @@ -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)