Skip to content

Commit

Permalink
wip: mac
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Oct 3, 2024
1 parent ec877e1 commit 91848b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/sst/mosaic/tunnel/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func Start(ctx context.Context, proj *project.Project) error {
if cmd != nil && tun.IP == next.IP && tun.Username == next.Username && tun.PrivateKey == next.PrivateKey {
continue
}
if cmd != nil {
cmd.Process.Signal(os.Interrupt)
if cmd != nil && cmd.Process != nil {
util.TerminateProcess(cmd.Process.Pid)
cmd.Wait()
}
tun = next
Expand Down

0 comments on commit 91848b8

Please sign in to comment.