Compare commits

...

1 commit

Author SHA1 Message Date
b567aa7b35 [#XX] morph/event: Release ants.Pool on listener stopping
Some checks failed
Vulncheck / Vulncheck (pull_request) Successful in 4m18s
DCO action / DCO (pull_request) Failing after 6m59s
Build / Build Components (1.21) (pull_request) Successful in 8m47s
Tests and linters / gopls check (pull_request) Successful in 9m5s
Tests and linters / Lint (pull_request) Successful in 9m35s
Tests and linters / Staticcheck (pull_request) Successful in 10m1s
Build / Build Components (1.22) (pull_request) Successful in 9m55s
Tests and linters / Tests (1.21) (pull_request) Failing after 18m25s
Tests and linters / Tests with -race (pull_request) Failing after 18m59s
Tests and linters / Tests (1.22) (pull_request) Failing after 19m25s
Pre-commit hooks / Pre-commit (pull_request) Successful in 39m32s
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
2024-07-04 12:09:18 +03:00

View file

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