Added reader closing (if it will help) and returns default group rather than "null"

This commit is contained in:
Twitchy 2011-07-12 21:16:59 +12:00
parent c090d9a9f6
commit 30d0d48386
8 changed files with 37 additions and 13 deletions

View file

@ -85,6 +85,8 @@ namespace TShockAPI.DB
while (reader.Read())
if (reader.Get<string>("GroupName") == group)
return true;
reader.Close();
}
}
}
@ -122,6 +124,8 @@ namespace TShockAPI.DB
}
groups.Add(group);
reader.Close();
}
}