persistentstorage/centralrepository/cenrepsrv/install.cpp
branchRCL_3
changeset 14 04ec7606545c
parent 12 6b6fd149daa2
child 23 26645d81f48d
--- a/persistentstorage/centralrepository/cenrepsrv/install.cpp	Tue Apr 27 18:25:57 2010 +0300
+++ b/persistentstorage/centralrepository/cenrepsrv/install.cpp	Tue May 11 17:49:39 2010 +0300
@@ -73,8 +73,11 @@
 CCentRepSWIWatcher::~CCentRepSWIWatcher()
 	{
 	Cancel();
-	iSWIKey.Cancel();
-	iSWIKey.Close();
+	if(iSWIKey.Handle() != KNullHandle)
+		{
+		iSWIKey.Cancel();
+		iSWIKey.Close();
+		}
 	iInstallEntryArray.ResetAndDestroy();
 	iCurrentInstallDirEntries.ResetAndDestroy();
 	}