aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hype/bbsentials/communication
diff options
context:
space:
mode:
authorHacktheTime <l4bg0jb7@duck.com>2023-09-29 23:52:15 +0200
committerHacktheTime <l4bg0jb7@duck.com>2023-09-29 23:53:36 +0200
commitfdd2c2b44938d6b5e1da2583dc1f0e149a1712d4 (patch)
tree7f68da5bcf4fed2013bf7c3da404d3c3c6aaeead /src/main/java/de/hype/bbsentials/communication
parentef0582a2aece635fa750f08aaed128fddf6b08a6 (diff)
downloadBBsentials-fdd2c2b44938d6b5e1da2583dc1f0e149a1712d4.tar.gz
BBsentials-fdd2c2b44938d6b5e1da2583dc1f0e149a1712d4.tar.bz2
BBsentials-fdd2c2b44938d6b5e1da2583dc1f0e149a1712d4.zip
bug fixes
Diffstat (limited to 'src/main/java/de/hype/bbsentials/communication')
-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);
}
}