diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java b/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java index d022319..abb5265 100644 --- a/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java +++ b/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java @@ -442,7 +442,12 @@ public class BBsentialConnection { Chat.sendPrivateMessageToSelfError(packet.displayMessage); for (int i : packet.waitBeforeReconnect) { executionService.schedule(() -> { - BBsentials.conditionalReconnectToBBserver(); + if (i == 1) { + BBsentials.connectToBBserver(); + } + else { + BBsentials.conditionalReconnectToBBserver(); + } }, i, TimeUnit.SECONDS); } } |