Skip to content

Commit

Permalink
r/signalr_service: updating the Polling func
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Feb 28, 2023
1 parent e216b9a commit 885dbd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/services/signalr/signalr_service_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ func resourceArmSignalRServiceDelete(d *pluginsdk.ResourceData, meta interface{}
return fmt.Errorf("deleting %s: %+v", *id, err)
}

if err := future.Poller.PollUntilDone(); err != nil {
if !response.WasNotFound(future.Poller.HttpResponse) {
if err := future.Poller.PollUntilDone(ctx); err != nil {
if r := future.Poller.LatestResponse(); r == nil || !response.WasNotFound(r.Response) {
return fmt.Errorf("waiting for deletion of %s: %+v", *id, err)
}
}
Expand Down

0 comments on commit 885dbd2

Please sign in to comment.