cosmetics

This commit is contained in:
UbitUmarov
2026-04-09 20:02:41 +01:00
parent 144e0bf6bd
commit 435636acdc
9 changed files with 86 additions and 90 deletions

View File

@@ -290,10 +290,6 @@ namespace osWebRtcVoice
{
get
{
// The JSON response gives a long number (not a string)
// and the ODMap conversion interprets it as a long (OSDLong).
// If one just does a "ToString()" on the OSD object, you
// get an interpretation of the binary value.
return dataSection.TryGetValue("id", out OSD oid) ? oid.AsLong().ToString() : string.Empty;
}
}

View File

@@ -50,7 +50,7 @@ namespace osWebRtcVoice
public string PluginId { get; private set; }
public string PluginUri { get ; private set ; }
public bool IsConnected => !String.IsNullOrEmpty(PluginId);
public bool IsConnected => !string.IsNullOrEmpty(PluginId);
// Wrapper around the session connection to Janus-gateway
public JanusPlugin(JanusSession pSession, string pPluginName)

View File

@@ -260,6 +260,8 @@ namespace osWebRtcVoice
// IWebRtcVoiceService.ProvisionVoiceAccountRequest
public OSDMap ProvisionVoiceAccountRequest(IVoiceViewerSession pSession, OSDMap pRequest, UUID pUserID, UUID pSceneID)
{
// the bad refers to use of .Result
// that should not be used and may deadlock, due to poor ms design of all this specially async/await crap
return ProvisionVoiceAccountRequestBAD(pSession, pRequest, pUserID, pSceneID).Result;
}