aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java7
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);
}
}