Fixed collision error with threaded access.
parent
042d69edaa
commit
9dfdd7d406
|
@ -40,6 +40,8 @@ namespace OpenGrid.Framework.Data.DB4o
|
||||||
}
|
}
|
||||||
|
|
||||||
public DataResponse AddProfile(SimProfileData profile)
|
public DataResponse AddProfile(SimProfileData profile)
|
||||||
|
{
|
||||||
|
lock (manager.profiles)
|
||||||
{
|
{
|
||||||
if (manager.AddRow(profile))
|
if (manager.AddRow(profile))
|
||||||
{
|
{
|
||||||
|
@ -50,6 +52,7 @@ namespace OpenGrid.Framework.Data.DB4o
|
||||||
return DataResponse.RESPONSE_ERROR;
|
return DataResponse.RESPONSE_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public bool AuthenticateSim(LLUUID uuid, ulong handle, string key) {
|
public bool AuthenticateSim(LLUUID uuid, ulong handle, string key) {
|
||||||
if (manager.profiles[uuid].regionRecvKey == key)
|
if (manager.profiles[uuid].regionRecvKey == key)
|
||||||
|
|
Loading…
Reference in New Issue