优化服务释放回调

This commit is contained in:
orgin
2022-02-17 11:31:42 +08:00
parent 933000d7bc
commit db964f90e1

View File

@@ -194,7 +194,6 @@ func (s *Service) Run() {
if atomic.AddInt32(&s.goroutineNum,-1)<=0 { if atomic.AddInt32(&s.goroutineNum,-1)<=0 {
s.startStatus = false s.startStatus = false
s.Release() s.Release()
s.OnRelease()
} }
break break
} }