aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs')
-rw-r--r--OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs
index 48d8e93..50ffbb0 100644
--- a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs
+++ b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs
@@ -194,7 +194,10 @@ namespace OpenGrid.Framework.Data.MySQL
194 194
195 public void addInventoryItem(InventoryItemBase item) 195 public void addInventoryItem(InventoryItemBase item)
196 { 196 {
197 197 lock (database)
198 {
199 database.insertItem(item);
200 }
198 } 201 }
199 202
200 public void updateInventoryItem(InventoryItemBase item) 203 public void updateInventoryItem(InventoryItemBase item)
@@ -204,7 +207,10 @@ namespace OpenGrid.Framework.Data.MySQL
204 207
205 public void addInventoryFolder(InventoryFolderBase folder) 208 public void addInventoryFolder(InventoryFolderBase folder)
206 { 209 {
207 210 lock (database)
211 {
212 database.insertFolder(folder);
213 }
208 } 214 }
209 215
210 public void updateInventoryFolder(InventoryFolderBase folder) 216 public void updateInventoryFolder(InventoryFolderBase folder)