aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackthetime <l4bg0jb7@duck.com>2023-10-26 13:39:57 +0200
committerhackthetime <l4bg0jb7@duck.com>2023-10-26 13:39:57 +0200
commit056b3d827379bba77d5ca370a1b257a1cd45bc6b (patch)
treec4a888a387c8638a23a42a8e1613cc8a3e866935
parent6afd670932d9ee2f2633bfcb5355055e8e41da01 (diff)
downloadBBsentials-056b3d827379bba77d5ca370a1b257a1cd45bc6b.tar.gz
BBsentials-056b3d827379bba77d5ca370a1b257a1cd45bc6b.tar.bz2
BBsentials-056b3d827379bba77d5ca370a1b257a1cd45bc6b.zip
readded disconnect check
-rw-r--r--common/src/main/java/de/hype/bbsentials/common/communication/BBsentialConnection.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/common/src/main/java/de/hype/bbsentials/common/communication/BBsentialConnection.java b/common/src/main/java/de/hype/bbsentials/common/communication/BBsentialConnection.java
index 56aa052..f5d83a7 100644
--- a/common/src/main/java/de/hype/bbsentials/common/communication/BBsentialConnection.java
+++ b/common/src/main/java/de/hype/bbsentials/common/communication/BBsentialConnection.java
@@ -147,14 +147,14 @@ public class BBsentialConnection {
String message = reader.readLine();
if (message != null) {
onMessageReceived(message);
-// else {
-// Chat.sendPrivateMessageToSelfError("BB: It seemed like you disconnected. Reconnecting...");
-// BBsentials.connectToBBserver();
-// try {
-// Thread.sleep(1000 * 10);
-// } catch (Exception ignored) {
-// }
-// }
+ }
+ else {
+ Chat.sendPrivateMessageToSelfError("BB: It seemed like you disconnected. Reconnecting...");
+ BBsentials.connectToBBserver();
+ try {
+ Thread.sleep(1000 * 10);
+ } catch (Exception ignored) {
+ }
}
}
} catch (IOException e) {