From a07117508df087c8acfd9dca5a343d97ae7ff160 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Mon, 18 May 2015 11:23:06 -0700 Subject: [PATCH] Fixing bug where container would create even if downloading container was deleted --- src/utils/DockerUtil.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/DockerUtil.js b/src/utils/DockerUtil.js index 6a1854c69..ccc6cb864 100644 --- a/src/utils/DockerUtil.js +++ b/src/utils/DockerUtil.js @@ -54,6 +54,10 @@ export default { stream.setEncoding('utf8'); stream.on('data', function () {}); stream.on('end', () => { + if (!this.placeholders[container.Name]) { + return; + } + delete this.placeholders[container.Name]; localStorage.setItem('placeholders', JSON.stringify(this.placeholders)); this.createContainer(container.Name, {Image: container.Config.Image});