Skip to content

Commit

Permalink
Fix lock verification thread reference
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmarion committed Dec 5, 2024
1 parent 68ea277 commit 67769b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void startServiceLockVerificationThread() {
final long interval =
getConfiguration().getTimeInMillis(Property.GENERAL_SERVER_LOCK_VERIFICATION_INTERVAL);
if (interval > 0) {
final Thread lockVerificationThread = Threads.createThread("service-lock-verification-thread",
verificationThread = Threads.createThread("service-lock-verification-thread",
OptionalInt.of(Thread.NORM_PRIORITY + 1), () -> {
while (true && serverThread.isAlive()) {
ServiceLock lock = getLock();
Expand All @@ -180,7 +180,7 @@ public void startServiceLockVerificationThread() {
}
}
});
lockVerificationThread.start();
verificationThread.start();
}
}

Expand Down

0 comments on commit 67769b1

Please sign in to comment.