persistentstorage/centralrepository/cenrepsrv/srvrepos_noc.cpp
changeset 1 c084286672be
parent 0 08ec8eefde2f
child 10 fa9941cf3867
child 14 15018f1726c7
equal deleted inserted replaced
0:08ec8eefde2f 1:c084286672be
    47 	TInt index = TServerResources::iObserver->FindOpenRepository(iUid);
    47 	TInt index = TServerResources::iObserver->FindOpenRepository(iUid);
    48 	
    48 	
    49 	if (index>=0)
    49 	if (index>=0)
    50 		{
    50 		{
    51 		iRepository = TServerResources::iObserver->GetOpenRepository(index);
    51 		iRepository = TServerResources::iObserver->GetOpenRepository(index);
    52 		// cancel to ensure any read/write locks are released and transaction settings cleaned up
    52 		}
    53 		CancelTransaction();
    53 	// cancel to ensure any read/write locks are released and transaction settings cleaned up
    54 		}
    54 
    55 		
    55     CancelTransaction();
       
    56 
       
    57 	
    56 	TServerResources::iObserver->RemoveObserver(iUid, this, index);
    58 	TServerResources::iObserver->RemoveObserver(iUid, this, index);
    57 	
    59 	
    58 	iNotifier = NULL;			
    60 	iNotifier = NULL;			
    59 	}
    61 	}
    60 	
    62