javamanager/javainstaller/installer/javasrc/com/nokia/mj/impl/installer/midp2/install/steps/InstallBall.java
equal
deleted
inserted
replaced
287 public void checkForCancel() throws Exception |
287 public void checkForCancel() throws Exception |
288 { |
288 { |
289 super.checkForCancel(); |
289 super.checkForCancel(); |
290 if (isCancelled()) |
290 if (isCancelled()) |
291 { |
291 { |
|
292 if (iDownloader != null) |
|
293 { |
|
294 try |
|
295 { |
|
296 Log.log("checkForCancel: User cancelled, stopping downloader..."); |
|
297 iDownloader.stop(); |
|
298 iDownloader = null; |
|
299 Log.log("checkForCancel: Downloader stopped"); |
|
300 } |
|
301 catch (Throwable t) |
|
302 { |
|
303 Log.logWarning("checkForCancel: Stopping downloader failed", t); |
|
304 } |
|
305 } |
292 throw new InstallerException |
306 throw new InstallerException |
293 (InstallerErrorMessage.INST_CANCEL, null, |
307 (InstallerErrorMessage.INST_CANCEL, null, |
294 InstallerDetailedErrorMessage.NO_MSG, null, |
308 InstallerDetailedErrorMessage.NO_MSG, null, |
295 OtaStatusCode.USER_CANCELLED); |
309 OtaStatusCode.USER_CANCELLED); |
296 } |
310 } |