Commit bc20d15e authored by fangyincheng's avatar fangyincheng

Fix:change Unlock to RUnlock

parent 50264ef3
...@@ -275,7 +275,7 @@ func (s *session) SetWaitTime(waitTime time.Duration) { ...@@ -275,7 +275,7 @@ func (s *session) SetWaitTime(waitTime time.Duration) {
func (s *session) GetAttribute(key interface{}) interface{} { func (s *session) GetAttribute(key interface{}) interface{} {
s.lock.RLock() s.lock.RLock()
if s.attrs == nil { if s.attrs == nil {
s.lock.Unlock() s.lock.RUnlock()
return nil return nil
} }
ret, flag := s.attrs.Get(key) ret, flag := s.attrs.Get(key)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment