|
@@ -110,7 +110,9 @@ func establishTunnel(config *Config) (tunnel *Tunnel, err error) {
|
|
|
err = errors.New("timeout establishing tunnel")
|
|
err = errors.New("timeout establishing tunnel")
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- cycler.Close()
|
|
|
|
|
|
|
+ if cycler != nil {
|
|
|
|
|
+ cycler.Close()
|
|
|
|
|
+ }
|
|
|
close(candidateServerEntries)
|
|
close(candidateServerEntries)
|
|
|
close(broadcastStopWorkers)
|
|
close(broadcastStopWorkers)
|
|
|
// Clean up is now asynchronous since Windows doesn't support interruptible connections
|
|
// Clean up is now asynchronous since Windows doesn't support interruptible connections
|