fix #614: only call thisStudy.shutdown in shield

This commit is contained in:
groovecoder 2017-06-22 08:39:07 -05:00 committed by Jonathan Kingston
parent 40f2f1af5e
commit 7eb752c2f7

View file

@ -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;