Prefer WaitOne with TimeSpan

This commit is contained in:
cinder
2025-01-13 07:44:05 -06:00
parent 6380fe19d2
commit d412aa3905
47 changed files with 119 additions and 109 deletions

View File

@@ -1,3 +1,4 @@
using System;
using OpenMetaverse.Assets;
namespace OpenMetaverse.TestClient
@@ -58,7 +59,7 @@ namespace OpenMetaverse.TestClient
);
// wait for reply or timeout
if (!waitEvent.WaitOne(10000, false))
if (!waitEvent.WaitOne(TimeSpan.FromSeconds(10), false))
{
result.Append("Timeout waiting for notecard to download.");
}