Prefer WaitOne with TimeSpan
This commit is contained in:
@@ -32,7 +32,7 @@ namespace OpenMetaverse.TestClient.Commands
|
||||
Client.Directory.StartGroupSearch(searchText, 0);
|
||||
|
||||
string result;
|
||||
if (waitQuery.WaitOne(20000, false) && Client.Network.Connected)
|
||||
if (waitQuery.WaitOne(TimeSpan.FromSeconds(20), false) && Client.Network.Connected)
|
||||
{
|
||||
result = "Your query '" + searchText + "' matched " + resultCount + " Groups. ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user