changeset 29 | cce6680bbf1c |
parent 19 | d6ef85bc5971 |
child 40 | b8bdbc8f59c7 |
--- a/persistentstorage/centralrepository/cenrepsrv/install.cpp Fri May 14 13:32:10 2010 +0100 +++ b/persistentstorage/centralrepository/cenrepsrv/install.cpp Thu Jul 01 17:02:22 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(); }