Make WebRtcSession.SendDto async.

This commit is contained in:
Jared 2021-03-23 08:24:57 -07:00 committed by Jared Goodwin
parent b9f6624453
commit 185b75892e

View File

@ -109,8 +109,7 @@ namespace Remotely.Desktop.Core.Services
public Task SendDto<T>(T dto) where T : BaseDto
{
CaptureChannel.SendMessage(MessagePackSerializer.Serialize(dto));
return Task.CompletedTask;
return Task.Run(() => CaptureChannel.SendMessage(MessagePackSerializer.Serialize(dto)));
}
public async Task SetRemoteDescription(string type, string sdp)