We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc2bcde commit ae36c63Copy full SHA for ae36c63
agent/agent.go
@@ -260,9 +260,17 @@ func (s *server) run(ctx context.Context) {
260
s.options.Logger.Warn(context.Background(), "failed to dial", slog.Error(err))
261
continue
262
}
263
+ defer func() {
264
+ _ = peerListener.Close()
265
+ }()
266
s.options.Logger.Debug(context.Background(), "connected")
267
break
268
269
+ select {
270
+ case <-ctx.Done():
271
+ return
272
+ default:
273
+ }
274
275
for {
276
conn, err := peerListener.Accept()
0 commit comments