mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
FIX: Session.Destroy trigger map concurrency write (#2225)
This commit is contained in:
@@ -44,7 +44,7 @@ type (
|
||||
//
|
||||
// Use the session's manager `Destroy(ctx)` in order to remove the cookie instead.
|
||||
func (s *Session) Destroy() {
|
||||
s.provider.deleteSession(s)
|
||||
s.provider.Destroy(s.sid)
|
||||
}
|
||||
|
||||
// ID returns the session's ID.
|
||||
|
||||
Reference in New Issue
Block a user