diff --git a/src/struct/LanguageHandler.js b/src/struct/LanguageHandler.js index 5107f91..9eeee3b 100644 --- a/src/struct/LanguageHandler.js +++ b/src/struct/LanguageHandler.js @@ -208,7 +208,10 @@ class LanguageHandler extends AkairoHandler { } cleanup() { - return Promise.all(this.containers.map(({ name }) => this.kill(name))); + return Promise.all(this.containers.map(({ name }, dockerID) => { + this.containers.delete(dockerID); + return this.kill(name); + })); } getCompilerConfig(dockerID, key, type) {