Skip to content

Commit

Permalink
Merge pull request #15 from waveflight/dev/misc_fixes
Browse files Browse the repository at this point in the history
Dev/misc fixes
  • Loading branch information
gcurtis-pds committed May 13, 2022
2 parents 8ac2cbf + 05b31ea commit 0b3c059
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ public void EtpSupportedDataObjectCollection_Intersection_Family_In_Common()

Assert.AreEqual(0, collection.SupportedTypes.Count());
Assert.AreEqual(1, collection.SupportedFamilies.Count());
Assert.AreEqual(int.MaxValue, collection.SupportedTypes.First().Capabilities.ActiveTimeoutPeriod);
Assert.AreEqual(false, collection.SupportedTypes.First().CounterpartCapabilities.SupportsPut);
}

[TestMethod]
Expand Down
3 changes: 1 addition & 2 deletions src/DevKit/Common/EtpProtocolHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1021,8 +1021,7 @@ private void StopBackgroundCleanUpLoop()
_source?.Cancel();
try
{
if (_backgroundCleanUpTask != null)
AsyncContext.Run(() => _backgroundCleanUpTask.ConfigureAwait(Session.CaptureAsyncContext));
AsyncContext.Run(() => _backgroundCleanUpTask?.ConfigureAwait(Session.CaptureAsyncContext));
}
catch (OperationCanceledException)
{
Expand Down

0 comments on commit 0b3c059

Please sign in to comment.