Skip to content

Commit

Permalink
fix for timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
RijadComor committed Jul 15, 2024
1 parent e901597 commit 91495be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ConnectorAPI.EVS.IPD-VIA/EvsIpdViaElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public TimeSpan Timeout
get
{
if (timeout != null) return (TimeSpan)timeout;
double timeoutInSeconds = element.GetStandaloneParameter<double>(EvsIpdViaProtocol.InterAppTimeout).GetValue();
var timeoutInSeconds = element.GetStandaloneParameter<double?>(EvsIpdViaProtocol.InterAppTimeout).GetValue();
logObject.Log(nameof(EvsIpdViaElement), nameof(Timeout), $"Timeout in seconds: {timeoutInSeconds}");
timeout = TimeSpan.FromSeconds(timeoutInSeconds);
timeout = TimeSpan.FromSeconds((double)timeoutInSeconds);
logObject.Log(nameof(EvsIpdViaElement), nameof(Timeout), $"Timeout in timespan: {timeout}");
return (TimeSpan)timeout;
}
Expand Down

0 comments on commit 91495be

Please sign in to comment.