forked from TrueCloudLab/frostfs-node
[#749] morph: Fix panic when closing morph client
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
c80b46fad3
commit
a26483fc30
5 changed files with 49 additions and 18 deletions
|
@ -207,6 +207,10 @@ func listenMorphNotifications(ctx context.Context, c *cfg) {
|
|||
})
|
||||
fatalOnErr(err)
|
||||
|
||||
c.onShutdown(func() {
|
||||
lis.Stop()
|
||||
})
|
||||
|
||||
c.workers = append(c.workers, newWorkerFromFunc(func(wCtx context.Context) {
|
||||
runAndLog(wCtx, c, "morph notification", false, func(lCtx context.Context, c *cfg) {
|
||||
lis.ListenWithError(lCtx, c.internalErr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue