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() },