mirror of
https://github.com/astaxie/beego.git
synced 2025-06-22 14:30:19 +00:00
add Destructor func
This commit is contained in:
@ -59,6 +59,10 @@ func (c *Controller) Prepare() {
|
||||
}
|
||||
|
||||
func (c *Controller) Finish() {
|
||||
|
||||
}
|
||||
|
||||
func (c *Controller) Destructor() {
|
||||
if c.CruSession != nil {
|
||||
c.CruSession.SessionRelease()
|
||||
}
|
||||
|
Reference in New Issue
Block a user