370371372373374375376377378379380381
try { if (!jobs.isEmpty()) { synchronized (jobs) { Iterator<AbstractMonitoringJob> iterator = jobs.iterator(); while (iterator.hasNext()) { AbstractMonitoringJob job = iterator.next(); job.cancel(); iterator.remove(); } } } } finally {