Skip to content

Commit

Permalink
stopping forwarder when remote dialer is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
gehrkefc committed Jan 28, 2025
1 parent 7550820 commit 57577ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proxyclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func (c *ProxyClient) Run(ctx context.Context) {

if err := remotedialer.ClientConnect(ctx, c.serverUrl, headers, c.dialer, onConnectAuth, onConnect); err != nil {
logrus.Errorf("remotedialer.ClientConnect error: %s", err.Error())
c.forwarder.Stop()
time.Sleep(retryTimeout)
}
}
Expand Down

0 comments on commit 57577ba

Please sign in to comment.