Browse Source

Add IsClosed method to Session

master
Robbie Trencheny 8 years ago
committed by GitHub
parent
commit
b2ece16412
  1. 5
      session.go

5
session.go

@ -193,3 +193,8 @@ func (s *Session) MustGet(key string) interface{} {
panic("Key \"" + key + "\" does not exist")
}
// IsClosed returns the status of the connection.
func (s *Session) IsClosed() bool {
return s.closed()
}
Loading…
Cancel
Save