persistentstorage/centralrepository/cenrepsrv/srvrepos_noc.cpp
changeset 1 c084286672be
parent 0 08ec8eefde2f
child 8 fa9941cf3867
--- a/persistentstorage/centralrepository/cenrepsrv/srvrepos_noc.cpp	Fri Jan 22 11:06:30 2010 +0200
+++ b/persistentstorage/centralrepository/cenrepsrv/srvrepos_noc.cpp	Tue Jan 26 13:16:24 2010 +0200
@@ -49,10 +49,12 @@
 	if (index>=0)
 		{
 		iRepository = TServerResources::iObserver->GetOpenRepository(index);
-		// cancel to ensure any read/write locks are released and transaction settings cleaned up
-		CancelTransaction();
 		}
-		
+	// cancel to ensure any read/write locks are released and transaction settings cleaned up
+
+    CancelTransaction();
+
+	
 	TServerResources::iObserver->RemoveObserver(iUid, this, index);
 	
 	iNotifier = NULL;