Skip to content

Commit 7c62271

Browse files
ballle98lsiepel
andauthored
[ddwrt] remove unneeded variable
code review PR openhab#20505 Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Lee Ballard <ballle98@gmail.com>
1 parent 1714338 commit 7c62271

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

bundles/org.openhab.binding.ddwrt/src/main/java/org/openhab/binding/ddwrt/internal/DDWRTDiscoveryService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ protected void startBackgroundDiscovery() {
8585
logger.debug("Starting DD-WRT background discovery");
8686
ScheduledFuture<?> job = backgroundDiscoveryJob;
8787
if (job == null || job.isCancelled()) {
88-
int intervalSeconds = DISCOVERY_TIMEOUT_SECONDS;
8988
backgroundDiscoveryJob = scheduler.scheduleWithFixedDelay(this::startScan,
90-
BACKGROUND_DISCOVERY_INITIAL_DELAY_SECONDS, intervalSeconds, TimeUnit.SECONDS);
89+
BACKGROUND_DISCOVERY_INITIAL_DELAY_SECONDS, DISCOVERY_TIMEOUT_SECONDS, TimeUnit.SECONDS);
9190
}
9291
// Register as refresh listener so discovery runs immediately after device refresh
9392
DDWRTNetwork net = thingHandler.getNetwork();

0 commit comments

Comments
 (0)