Skip to content

Commit

Permalink
fix #614: only call thisStudy.shutdown in shield
Browse files Browse the repository at this point in the history
  • Loading branch information
groovecoder authored and jonathanKingston committed Jun 22, 2017
1 parent 40f2f1a commit 7eb752c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion study.js
Expand Up @@ -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;

0 comments on commit 7eb752c

Please sign in to comment.