mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-02-01 15:23:03 +00:00
afterEnd method invoked in nextTick
This commit is contained in:
parent
903ce1ac39
commit
6d74db661c
@ -696,7 +696,16 @@ export default class {
|
||||
_end(){
|
||||
this.cookie(true);
|
||||
this.res.end();
|
||||
|
||||
|
||||
process.nextTick(() => {
|
||||
this._afterEnd();
|
||||
});
|
||||
}
|
||||
/**
|
||||
* after end
|
||||
* @return {} []
|
||||
*/
|
||||
_afterEnd(){
|
||||
//flush session
|
||||
if(this._session && this._session.flush){
|
||||
this._session.flush();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user