Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit 0fcbbe3

Browse files
author
ben.gordon
committed
.Net45 compatibility returns a finished task
1 parent b62e9dd commit 0fcbbe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Titanium.Web.Proxy/Helpers/Net45Compatibility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Net45Compatibility
88
{
99
public static byte[] EmptyArray = new byte[0];
1010

11-
public static Task CompletedTask = new Task(() => { });
11+
public static Task CompletedTask = Task.FromResult<object>(null);
1212
}
1313
}
1414
#endif

0 commit comments

Comments
 (0)