Fixed collision error with threaded access.

0.1-prestable
Adam Frisby 2007-05-06 01:43:12 +00:00
parent 042d69edaa
commit 9dfdd7d406
1 changed files with 9 additions and 6 deletions

View File

@ -40,6 +40,8 @@ namespace OpenGrid.Framework.Data.DB4o
}
public DataResponse AddProfile(SimProfileData profile)
{
lock (manager.profiles)
{
if (manager.AddRow(profile))
{
@ -50,6 +52,7 @@ namespace OpenGrid.Framework.Data.DB4o
return DataResponse.RESPONSE_ERROR;
}
}
}
public bool AuthenticateSim(LLUUID uuid, ulong handle, string key) {
if (manager.profiles[uuid].regionRecvKey == key)