Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5a53db

Browse files
committed
fixup! fix: Improve closure of provisioner and agent tailnet dial
1 parent 64f6496 commit f5a53db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provisionerd/provisionerd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ func (p *Server) closeWithError(err error) error {
521521
p.opts.Logger.Debug(context.Background(), "closing server with error", slog.Error(err))
522522

523523
if c, ok := p.clientValue.Load().(proto.DRPCProvisionerDaemonClient); ok {
524-
_ = c.Close()
524+
_ = c.DRPCConn().Close()
525525
}
526526

527527
return err

0 commit comments

Comments
 (0)