Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Fixing bug where container would create even if downloading container…
Browse files Browse the repository at this point in the history
… was deleted
  • Loading branch information
jmorganca committed May 18, 2015
1 parent 62b9081 commit a071175
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/DockerUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down

0 comments on commit a071175

Please sign in to comment.