Commit ab238111 authored by fangyincheng's avatar fangyincheng

Add:add a log.Errorf for OnOpen

parent c150ddf5
......@@ -472,6 +472,7 @@ func (s *session) run() {
// call session opened
s.UpdateActive()
if err := s.listener.OnOpen(s); err != nil {
log.Errorf("[OnOpen] error: %v", err)
s.Close()
return
}
......
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