From e1c7d1a26ed6b257a938594a31e5f14ca1cdf8db Mon Sep 17 00:00:00 2001 From: Richard Schneider Date: Sat, 4 May 2019 11:57:02 +1200 Subject: [PATCH] fix: more SynchonizationContext work --- src/IpfsEngine.csproj | 2 +- src/UnixFileSystem/ChunkedStream.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IpfsEngine.csproj b/src/IpfsEngine.csproj index 0337696c..3728d1c1 100644 --- a/src/IpfsEngine.csproj +++ b/src/IpfsEngine.csproj @@ -43,7 +43,7 @@ - + diff --git a/src/UnixFileSystem/ChunkedStream.cs b/src/UnixFileSystem/ChunkedStream.cs index 975c3dce..988a23fb 100644 --- a/src/UnixFileSystem/ChunkedStream.cs +++ b/src/UnixFileSystem/ChunkedStream.cs @@ -102,7 +102,7 @@ public override void Write(byte[] buffer, int offset, int count) /// public override int Read(byte[] buffer, int offset, int count) { - return ReadAsync(buffer, offset, count).Result; + return ReadAsync(buffer, offset, count).GetAwaiter().GetResult(); } ///