Skip to content

Commit

Permalink
Merge pull request #1702 from mrpalide/fix/close-app-proxy-vpn-issue
Browse files Browse the repository at this point in the history
fix logic of close app by sigterm
  • Loading branch information
mrpalide authored Dec 19, 2023
2 parents 8393d9f + b8680e3 commit 4e5baac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion cmd/skywire-cli/commands/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ var startCmd = &cobra.Command{
}

ctx, cancel := cmdutil.SignalContext(context.Background(), &logrus.Logger{})
defer cancel()
go func() {
<-ctx.Done()
cancel()
Expand Down
1 change: 0 additions & 1 deletion cmd/skywire-cli/commands/vpn/vvpn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4e5baac

Please sign in to comment.