diff options
Diffstat (limited to 'modules/session/virtual.go')
-rw-r--r-- | modules/session/virtual.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/session/virtual.go b/modules/session/virtual.go index b79686b7b2..b90f03417a 100644 --- a/modules/session/virtual.go +++ b/modules/session/virtual.go @@ -5,6 +5,7 @@ package session import ( + "container/list" "encoding/json" "fmt" "sync" @@ -38,7 +39,7 @@ func (o *VirtualSessionProvider) Init(gclifetime int64, config string) error { // This is only slightly more wrong than modules/setting/session.go:23 switch opts.Provider { case "memory": - o.provider = &session.MemProvider{} + o.provider = &MemProvider{list: list.New(), data: make(map[string]*list.Element)} case "file": o.provider = &session.FileProvider{} case "redis": |