Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

adding onExit #1208

Merged
merged 1 commit into from
Jan 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
adding onExit
  • Loading branch information
Weston committed Jan 23, 2018
commit d573aa680116aee6f2833175f0640681fcd2d548
3 changes: 3 additions & 0 deletions lib/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
},

Expand Down