Skip to content

Commit e852648

Browse files
committed
intra/tunnel: do not wipe out bridge, for now
An elusive nil ptr crashes runtime when the host process is shutting down. although, it isn't clear just where this nil originates, the var bridge in tunnel.go is one suspect.
1 parent 1636db0 commit e852648

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intra/tunnel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func (t *rtunnel) Disconnect() {
159159
err0 := t.resolver.Stop()
160160
err1 := t.proxies.StopProxies()
161161
n := t.services.StopServers()
162-
t.bridge = nil // "free" ref to the client
162+
// t.bridge = nil // "free" ref to the client
163163
log.I("tun: <<< disconnect >>>; err0(%v); err1(%v); svc(%d)", err0, err1, n)
164164

165165
t.Tunnel.Disconnect()

0 commit comments

Comments
 (0)