Skip to content

Commit 26531a0

Browse files
author
Brian McCallister
committed
make agent work more than once
1 parent 22b8941 commit 26531a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agent/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package main
22

33
import (
44
"fmt"
5+
"io"
56
"net"
67

78
"golang.org/x/crypto/ssh"
@@ -44,7 +45,7 @@ func main() {
4445
}
4546
go func() {
4647
err := agent.ServeAgent(keyring, conn)
47-
if err != nil {
48+
if err != nil && err != io.EOF {
4849
panic(err)
4950
}
5051
}()

0 commit comments

Comments
 (0)