Skip to content

Commit beb9520

Browse files
committed
Pass current CancellationToken to child task
1 parent f294242 commit beb9520

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/OpenStack.Net/OpenStack/Services/ContentDelivery/V1/ContentDeliveryClient.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ public virtual Task<UpdateServiceApiCall> PrepareUpdateServiceAsync(ServiceId se
179179
// At this point, the serviceData parameter contains the NEW (AFTER) version
180180
// of the service data. Now, we need to retrieve the current (BEFORE) version,
181181
// then use those to calculate the difference, i.e. the JSON Patch document.
182-
CancellationToken cn = new CancellationToken();
183-
var getServiceTask = ContentDeliveryServiceExtensions.GetServiceAsync(this, serviceId, cn);
182+
var getServiceTask = ContentDeliveryServiceExtensions.GetServiceAsync(this, serviceId, cancellationToken);
184183
getServiceTask.Wait();
185184
ServiceData originalServiceData = getServiceTask.Result;
186185

0 commit comments

Comments
 (0)