mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-11 14:16:27 +00:00
Update dependencies and remove old matterclient lib (#2067)
This commit is contained in:
9
vendor/github.com/olahol/melody/session.go
generated
vendored
9
vendor/github.com/olahol/melody/session.go
generated
vendored
@ -223,6 +223,15 @@ func (s *Session) MustGet(key string) interface{} {
|
||||
panic("Key \"" + key + "\" does not exist")
|
||||
}
|
||||
|
||||
// UnSet will delete the key and has no return value
|
||||
func (s *Session) UnSet(key string) {
|
||||
s.rwmutex.Lock()
|
||||
defer s.rwmutex.Unlock()
|
||||
if s.Keys != nil {
|
||||
delete(s.Keys, key)
|
||||
}
|
||||
}
|
||||
|
||||
// IsClosed returns the status of the connection.
|
||||
func (s *Session) IsClosed() bool {
|
||||
return s.closed()
|
||||
|
Reference in New Issue
Block a user