Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e1a0a4

Browse files
committed
Use Ticker instead of Timer
1 parent621aeb1 commit3e1a0a4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎agent/agent.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,9 @@ func (a *agent) handleReconnectingPTY(ctx context.Context, rawID string, conn ne
548548
// Resetting this timeout prevents the PTY from exiting.
549549
rpty.timeout.Reset(a.reconnectingPTYTimeout)
550550

551-
heartbeat:=time.NewTimer(a.reconnectingPTYTimeout/2)
551+
ctx,cancelFunc:=context.WithCancel(ctx)
552+
defercancelFunc()
553+
heartbeat:=time.NewTicker(a.reconnectingPTYTimeout/2)
552554
deferheartbeat.Stop()
553555
gofunc() {
554556
// Keep updating the activity while this

‎site/src/pages/TerminalPage/TerminalPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ const useStyles = makeStyles(() => ({
222222
terminal:{
223223
width:"100vw",
224224
height:"100vh",
225+
overflow:"hidden",
225226
// These styles attempt to mimic the VS Code scrollbar.
226227
"& .xterm":{
227228
padding:4,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp