Modernize TestClient

This commit is contained in:
Cinder Biscuits
2019-10-30 20:39:56 -05:00
parent 06887457b5
commit b4929f83e0
7 changed files with 54 additions and 55 deletions

View File

@@ -28,7 +28,7 @@ namespace OpenMetaverse.TestClient
private System.Timers.Timer updateTimer;
private UUID GroupMembersRequestID;
public Dictionary<UUID, Group> GroupsCache = null;
private ManualResetEvent GroupsEvent = new ManualResetEvent(false);
private readonly ManualResetEvent GroupsEvent = new ManualResetEvent(false);
/// <summary>
///
@@ -203,7 +203,7 @@ namespace OpenMetaverse.TestClient
lock(GroupsCache) {
if (GroupsCache.Count > 0) {
foreach (Group currentGroup in GroupsCache.Values)
if (currentGroup.Name.ToLower() == groupName.ToLower())
if (String.Equals(currentGroup.Name, groupName, StringComparison.CurrentCultureIgnoreCase))
return currentGroup.ID;
}
}