aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenGrid.Framework.Data.DB4o/DB4oGridData.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenGrid.Framework.Data.DB4o/DB4oGridData.cs b/OpenGrid.Framework.Data.DB4o/DB4oGridData.cs
index 63f976f..c853b50 100644
--- a/OpenGrid.Framework.Data.DB4o/DB4oGridData.cs
+++ b/OpenGrid.Framework.Data.DB4o/DB4oGridData.cs
@@ -41,13 +41,16 @@ namespace OpenGrid.Framework.Data.DB4o
41 41
42 public DataResponse AddProfile(SimProfileData profile) 42 public DataResponse AddProfile(SimProfileData profile)
43 { 43 {
44 if (manager.AddRow(profile)) 44 lock (manager.profiles)
45 {
46 return DataResponse.RESPONSE_OK;
47 }
48 else
49 { 45 {
50 return DataResponse.RESPONSE_ERROR; 46 if (manager.AddRow(profile))
47 {
48 return DataResponse.RESPONSE_OK;
49 }
50 else
51 {
52 return DataResponse.RESPONSE_ERROR;
53 }
51 } 54 }
52 } 55 }
53 56