Skip to content

Commit 3c60eae

Browse files
committed
Remove a.network = network
1 parent eda21b4 commit 3c60eae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/agent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ func (a *agent) createTailnet(ctx context.Context, derpMap *tailcfg.DERPMap) (ne
264264
defer func() {
265265
// Apparently, it's possible to shut down network via agent.Close().
266266
// The condition `network != nil` prevents panic in tests.
267-
if err != nil && network != nil {
267+
if err != nil {
268268
network.Close()
269269
}
270270
}()
271-
a.network = network
271+
// a.network = network
272272
a.closeMutex.Unlock()
273273

274274
sshListener, err := network.Listen("tcp", ":"+strconv.Itoa(codersdk.TailnetSSHPort))

0 commit comments

Comments
 (0)