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) {
func (s *session) GetAttribute(key interface{}) interface{} {
s.lock.RLock()
if s.attrs == nil {
s.lock.Unlock()
s.lock.RUnlock()
return nil
}
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