Add IsClosed method to Session

This commit is contained in:
Robbie Trencheny
2017-04-07 14:16:23 -07:00
committed by GitHub
parent e5f177a9d7
commit b2ece16412
+5
View File
@@ -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()
}