From 227c56fdf5796e484c1c9a11c2fd3656b33f93c9 Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Fri, 7 Aug 2020 09:29:58 -0700 Subject: [PATCH] Target .NET Core 3.1 for Desktop.Core library. --- Desktop.Core/Desktop.Core.csproj | 2 +- Desktop.Core/Services/WebRtcSession.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Desktop.Core/Desktop.Core.csproj b/Desktop.Core/Desktop.Core.csproj index 1679f2ba6..5584ebc0e 100644 --- a/Desktop.Core/Desktop.Core.csproj +++ b/Desktop.Core/Desktop.Core.csproj @@ -1,7 +1,7 @@  - netstandard2.1 + netcoreapp3.1 Remotely.Desktop.Core Remotely_Desktop.Core AnyCPU;x64;x86 diff --git a/Desktop.Core/Services/WebRtcSession.cs b/Desktop.Core/Services/WebRtcSession.cs index d9988540b..6fd66cedc 100644 --- a/Desktop.Core/Services/WebRtcSession.cs +++ b/Desktop.Core/Services/WebRtcSession.cs @@ -61,6 +61,8 @@ public void Dispose() VideoSource?.Dispose(); try { + // Unable to exit process until DataChannel is removed/disposed, + // and this throws internally (at least in 2.0 version). PeerSession?.RemoveDataChannel(CaptureChannel); } catch { }