4
0
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:
Wim
2023-08-05 20:43:19 +02:00
committed by GitHub
parent 9459495484
commit 56e7bd01ca
772 changed files with 139315 additions and 121315 deletions

View File

@ -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()