From b343abf33f0fb7cae827ddcd852780c9cd03eba2 Mon Sep 17 00:00:00 2001 From: megoRU Date: Thu, 25 Jan 2024 14:48:13 +0300 Subject: [PATCH] New Update 1. Fix #309 --- src/main/java/main/service/StopGiveawayService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/main/service/StopGiveawayService.java b/src/main/java/main/service/StopGiveawayService.java index 5b2a35d..7321ac0 100644 --- a/src/main/java/main/service/StopGiveawayService.java +++ b/src/main/java/main/service/StopGiveawayService.java @@ -41,6 +41,9 @@ public void stop() { if (!lockEnd && now.after(endGiveawayDate)) { LOGGER.info(logMessage); giveaway.stopGiveaway(countWinners); + } else if (finishGiveaway) { + LOGGER.info(logMessage); + giveaway.stopGiveaway(countWinners); } } } catch (Exception e) {