Fix cleanup not deleting containers from memory

This commit is contained in:
1computer1 2019-06-15 23:34:20 -04:00
parent 21624437b3
commit 0dfa5fddd4

View file

@ -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) {