public void cancelPendingUpdates(){
synchronized (downloadJobs) {
    for (    DownloadJob dlj : downloadJobs) {
      dlj.cancel();
    }
    downloadJobs.clear();
  }
}

public void cancelPendingUpdates ( ) { synchronized ( downloadJobs ) { for ( DownloadJob dlj : downloadJobs ) { dlj . cancel ( ) ; } downloadJobs . clear ( ) ; } }
terminates any update checks that are currently in progress .
