Add IsClosed method to Session
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user