Merge pull request #3496 from darfux/v2_close_ttrpc_when_delete

v2: Close ttrpc connection when Delete()
This commit is contained in:
Wei Fu 2019-08-06 23:51:02 +08:00 committed by GitHub
commit 7fddefc493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,6 +221,7 @@ func (s *shim) Delete(ctx context.Context) (*runtime.Exit, error) {
if err := s.waitShutdown(ctx); err != nil { if err := s.waitShutdown(ctx); err != nil {
log.G(ctx).WithError(err).Error("failed to shutdown shim") log.G(ctx).WithError(err).Error("failed to shutdown shim")
} }
s.Close()
if err := s.bundle.Delete(); err != nil { if err := s.bundle.Delete(); err != nil {
log.G(ctx).WithError(err).Error("failed to delete bundle") log.G(ctx).WithError(err).Error("failed to delete bundle")
} }