From: David ‘Bombe’ Roden Date: Sun, 3 Aug 2014 18:55:33 +0000 (+0200) Subject: No need to check for the stop job. X-Git-Tag: 0.9-rc1^2~3^2~168 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3a89542e264179883bd08cc40dec8f451a2d1086;p=Sone.git No need to check for the stop job. The stop job can not be in the queue without stop() having been called. --- diff --git a/src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java b/src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java index 539897a..ce68797 100644 --- a/src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java +++ b/src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java @@ -230,7 +230,7 @@ public class WebOfTrustUpdater extends AbstractService { while (!shouldStop()) { try { WebOfTrustUpdateJob updateJob = updateJobs.take(); - if (shouldStop() || (updateJob == stopJob)) { + if (shouldStop()) { break; } logger.log(Level.FINE, "Running Trust Update Job: " + updateJob);