From d573aa680116aee6f2833175f0640681fcd2d548 Mon Sep 17 00:00:00 2001 From: Weston Date: Tue, 23 Jan 2018 10:45:53 -0500 Subject: [PATCH] adding onExit --- lib/engine.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/engine.js b/lib/engine.js index 7f540de7ad..8170807ee9 100644 --- a/lib/engine.js +++ b/lib/engine.js @@ -882,6 +882,9 @@ module.exports = function container (get, set, clear) { }, exit: function (cb) { + if(s.strategy.onExit) { + s.strategy.onExit.call( s.ctx, s ) + } cb() },