From: David ‘Bombe’ Roden Date: Wed, 11 Jun 2014 04:05:20 +0000 (+0200) Subject: Small simplification. X-Git-Tag: 0.9-rc1^2~3^2~249 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=755fb3405eb56f264559a60caf5115b4482392d7;p=Sone.git Small simplification. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java index 9e5d578..51882e9 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -191,14 +191,13 @@ public class SoneInserter extends AbstractService { long lastModificationTime = 0; String lastInsertedFingerprint = lastInsertFingerprint; String lastFingerprint = ""; - Sone sone; while (!shouldStop()) { try { /* check every second. */ sleep(1000); /* don’t insert locked Sones. */ - sone = this.sone; + Sone sone = this.sone; if (core.isLocked(sone)) { /* trigger redetection when the Sone is unlocked. */ synchronized (sone) {