From 0cf5f5abe7fdb8e901918806f4af26a8bf581568 Mon Sep 17 00:00:00 2001 From: Stephen Starkie Date: Tue, 20 Mar 2018 13:28:40 +0000 Subject: [PATCH] Fix for THRIFT-4524 Also fixed up the project files to include quoted Program Files paths --- lib/netcore/Thrift/Server/AsyncBaseServer.cs | 6 +++++- test/netcore/Client/Client.csproj | 6 +++--- test/netcore/Server/Server.csproj | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/netcore/Thrift/Server/AsyncBaseServer.cs b/lib/netcore/Thrift/Server/AsyncBaseServer.cs index 0032ca3862c..325c39c7164 100644 --- a/lib/netcore/Thrift/Server/AsyncBaseServer.cs +++ b/lib/netcore/Thrift/Server/AsyncBaseServer.cs @@ -100,7 +100,11 @@ private async Task StartListening(CancellationToken cancellationToken) } else { - await Task.Delay(TimeSpan.FromMilliseconds(_clientWaitingDelay), cancellationToken); + try + { + await Task.Delay(TimeSpan.FromMilliseconds(_clientWaitingDelay), cancellationToken); + } + catch(TaskCanceledException) { } } } diff --git a/test/netcore/Client/Client.csproj b/test/netcore/Client/Client.csproj index 4b31a7d68e8..f16af390a52 100644 --- a/test/netcore/Client/Client.csproj +++ b/test/netcore/Client/Client.csproj @@ -1,4 +1,4 @@ - + netcoreapp2.0 Client @@ -24,8 +24,8 @@ - + - \ No newline at end of file + diff --git a/test/netcore/Server/Server.csproj b/test/netcore/Server/Server.csproj index ad2fb7c71f0..2f9b4b1f586 100644 --- a/test/netcore/Server/Server.csproj +++ b/test/netcore/Server/Server.csproj @@ -24,7 +24,7 @@ - +