changeset 22 | a7ba600cb39d |
parent 19 | d6ef85bc5971 |
child 40 | b8bdbc8f59c7 |
--- a/persistentstorage/centralrepository/cenrepsrv/install.cpp Fri May 14 17:36:33 2010 +0300 +++ b/persistentstorage/centralrepository/cenrepsrv/install.cpp Thu May 27 14:29:47 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(); }