From 6b80cbf87d0a0f565f4a1dfd248a015fe9c8dcc5 Mon Sep 17 00:00:00 2001 From: jackofallops Date: Fri, 25 Oct 2024 15:40:30 +0200 Subject: [PATCH] add reset on failure counter --- sdk/client/resourcemanager/poller_provisioning_state.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/client/resourcemanager/poller_provisioning_state.go b/sdk/client/resourcemanager/poller_provisioning_state.go index bfda2e97728..cf80b2c4f0d 100644 --- a/sdk/client/resourcemanager/poller_provisioning_state.go +++ b/sdk/client/resourcemanager/poller_provisioning_state.go @@ -102,6 +102,9 @@ func (p *provisioningStatePoller) Poll(ctx context.Context) (*pollers.PollResult return nil, fmt.Errorf("executing request: %+v", err) } + + p.droppedConnectionCount = 0 + if resp == nil { return nil, pollers.PollingDroppedConnectionError{} }