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 729f8a0 commit ae0bc5dCopy full SHA for ae0bc5d
codersdk/agentconn.go
@@ -135,7 +135,7 @@ type AgentConn struct {
135
func (c *AgentConn) Ping(ctx context.Context) (time.Duration, error) {
136
errCh := make(chan error, 1)
137
durCh := make(chan time.Duration, 1)
138
- c.Conn.Ping(TailnetIP, tailcfg.PingDisco, func(pr *ipnstate.PingResult) {
+ go c.Conn.Ping(TailnetIP, tailcfg.PingDisco, func(pr *ipnstate.PingResult) {
139
if pr.Err != "" {
140
errCh <- xerrors.New(pr.Err)
141
return
0 commit comments