Fix cleanup not deleting containers from memory
This commit is contained in:
parent
21624437b3
commit
0dfa5fddd4
1 changed files with 4 additions and 1 deletions
|
@ -208,7 +208,10 @@ class LanguageHandler extends AkairoHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup() {
|
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) {
|
getCompilerConfig(dockerID, key, type) {
|
||||||
|
|
Loading…
Reference in a new issue