persistentstorage/centralrepository/cenrepsrv/install.cpp
branchGCC_SURGE
changeset 38 c4e342fcf0c8
parent 22 a7ba600cb39d
child 40 b8bdbc8f59c7
--- a/persistentstorage/centralrepository/cenrepsrv/install.cpp	Mon Jun 21 22:46:09 2010 +0100
+++ b/persistentstorage/centralrepository/cenrepsrv/install.cpp	Thu Jul 22 16:49:09 2010 +0100
@@ -73,8 +73,11 @@
 CCentRepSWIWatcher::~CCentRepSWIWatcher()
 	{
 	Cancel();
-	iSWIKey.Cancel();
-	iSWIKey.Close();
+	if(iSWIKey.Handle() != KNullHandle)
+		{
+		iSWIKey.Cancel();
+		iSWIKey.Close();
+		}
 	iInstallEntryArray.ResetAndDestroy();
 	iCurrentInstallDirEntries.ResetAndDestroy();
 	}