diff --git a/cmd/skywire-cli/commands/proxy/proxy.go b/cmd/skywire-cli/commands/proxy/proxy.go index 2c4ef5e821..7444d507b3 100644 --- a/cmd/skywire-cli/commands/proxy/proxy.go +++ b/cmd/skywire-cli/commands/proxy/proxy.go @@ -125,7 +125,6 @@ var startCmd = &cobra.Command{ } ctx, cancel := cmdutil.SignalContext(context.Background(), &logrus.Logger{}) - defer cancel() go func() { <-ctx.Done() cancel() diff --git a/cmd/skywire-cli/commands/vpn/vvpn.go b/cmd/skywire-cli/commands/vpn/vvpn.go index 4ab463523e..9adca3d5b1 100644 --- a/cmd/skywire-cli/commands/vpn/vvpn.go +++ b/cmd/skywire-cli/commands/vpn/vvpn.go @@ -84,7 +84,6 @@ var startCmd = &cobra.Command{ internal.Catch(cmd.Flags(), rpcClient.StartVPNClient(pubkey)) internal.PrintOutput(cmd.Flags(), nil, "Starting.") ctx, cancel := cmdutil.SignalContext(context.Background(), &logrus.Logger{}) - defer cancel() go func() { <-ctx.Done() cancel()