1 parent a5e674d commit 64212d6Copy full SHA for 64212d6
1 file changed
src/client/main.go
@@ -195,8 +195,11 @@ var CliClientOpenCommand = cli.Command{
195
killAllCmds(nvrhContext.CommandsToKill)
196
os.Remove(nvrhContext.LocalSocketPath)
197
if nvrhContext.SshClient != nil {
198
- nvrhContext.SshClient.Run(fmt.Sprintf("rm -f '%s'", nvrhContext.RemoteSocketPath), nil)
199
- nvrhContext.SshClient.Run(fmt.Sprintf("rm -f '%s'", nvrhContext.BrowserScriptPath), nil)
+ if nv != nil {
+ nvrhContext.SshClient.Run(fmt.Sprintf("rm -f '%s'", nvrhContext.RemoteSocketPath), nil)
200
+ nvrhContext.SshClient.Run(fmt.Sprintf("rm -f '%s'", nvrhContext.BrowserScriptPath), nil)
201
+ }
202
+
203
nvrhContext.SshClient.Close()
204
}
205
}()
0 commit comments