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/?p=Sone.git;a=commitdiff_plain;h=3a89542e264179883bd08cc40dec8f451a2d1086;hp=43364d6d488aede562d4ca0d2ec6a0e04f125110 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);