fix #614: only call thisStudy.shutdown in shield
This commit is contained in:
parent
40f2f1af5e
commit
7eb752c2f7
1 changed files with 3 additions and 1 deletions
4
study.js
4
study.js
|
@ -28,6 +28,8 @@ class ContainersStudy extends shield.Study {
|
|||
|
||||
const thisStudy = new ContainersStudy(studyConfig);
|
||||
|
||||
unload((reason) => thisStudy.shutdown(reason));
|
||||
if (self.id === "@shield-study-containers") {
|
||||
unload((reason) => thisStudy.shutdown(reason));
|
||||
}
|
||||
|
||||
exports.study = thisStudy;
|
||||
|
|
Loading…
Add table
Reference in a new issue