summaryrefslogtreecommitdiff
path: root/session_store.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-12-21 23:45:49 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-12-21 23:45:49 (GMT)
commitbcc3483ff7e719c4e429b22e045937fd19e34400 (patch)
tree29ad9aa3523e9d6c07f99f0e85c847ba61d26367 /session_store.go
parent4a358bab91c53ac951567c0f25d08368095b843a (diff)
basic session handling works now
Diffstat (limited to 'session_store.go')
-rw-r--r--session_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/session_store.go b/session_store.go
index b2e1538..8dd74c7 100644
--- a/session_store.go
+++ b/session_store.go
@@ -130,7 +130,7 @@ func (self *SessionStoreChan) Get(user, id string) (*SessionChan, error) {
func (self *SessionStore) remove(user, id string) (resp removeSessionResponse) {
if session, exists := self.store[user][id]; exists {
- session.Cleanup()
+ go session.Cleanup() // cleanup could take a while -> don't block all the other stuff
delete(self.store[user], id)
rhdl.Printf("SessionStore: removed session '%s/%s'", user, id)
if userstore, exists := self.store[user]; exists {