[#1227] morph/event: Release ants.Pool on listener stopping #1227

Merged
fyrchik merged 1 commit from dkirillov/frostfs-node:bugfix/release_ants_pool_in_event_listener into master 2024-07-04 10:55:17 +00:00

View file

@ -621,6 +621,7 @@ func (l *listener) RegisterNotaryHandler(hi NotaryHandlerInfo) {
func (l *listener) Stop() {
l.stopOnce.Do(func() {
l.subscriber.Close()
l.pool.Release()
})
l.wg.Wait()
}