mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-13 06:49:38 -05:00
registry: correctly return from go-routine on cancelation
When the the context is cancel we need to return from the go-routine after de-registering the service.
This commit is contained in:
committed by
Ralf Haferkamp
parent
5f9c91582e
commit
03fc51d573
@@ -39,6 +39,7 @@ func RegisterService(ctx context.Context, service *mRegistry.Service, logger log
|
||||
if err != nil {
|
||||
logger.Err(err).Msgf("Error unregistering external service %v", service.Name)
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user