Skip to content

Commit 61a4253

Browse files
committed
Avoid useless buffer reset on close
1 parent e37fc0f commit 61a4253

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

agent/reconnectingpty/buffered.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ func (rpty *bufferedReconnectingPTY) lifecycle(ctx context.Context, logger slog.
145145
rpty.mutex.Lock()
146146
defer rpty.mutex.Unlock()
147147

148-
rpty.circularBuffer.Reset()
149-
150148
// Log these closes only for debugging since the connections or processes
151149
// might have already closed on their own.
152150
for _, conn := range rpty.activeConns {

0 commit comments

Comments
 (0)