more things on webrtc, reduce use of async/await

This commit is contained in:
UbitUmarov
2026-02-26 14:53:45 +00:00
parent fc607035c8
commit 5fd022e33c
7 changed files with 152 additions and 157 deletions

View File

@@ -28,8 +28,6 @@
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Collections.Generic;
using System.Reflection;
using Mono.Addins;
@@ -306,7 +304,7 @@ namespace osWebRtcVoice
}
// The checks passed. Send the request to the voice service.
OSDMap resp = voiceService.ProvisionVoiceAccountRequest(map, agentID, scene.RegionInfo.RegionID).Result;
OSDMap resp = voiceService.ProvisionVoiceAccountRequest(map, agentID, scene.RegionInfo.RegionID);
if(resp is not null)
{
@@ -364,7 +362,7 @@ namespace osWebRtcVoice
}
}
OSDMap resp = voiceService.VoiceSignalingRequest(map, agentID, scene.RegionInfo.RegionID).Result;
OSDMap resp = voiceService.VoiceSignalingRequest(map, agentID, scene.RegionInfo.RegionID);
if (_MessageDetails) m_log.Debug($"{logHeader}[VoiceSignalingRequest]: Response: {resp}");