diff options
| author | hackthetime <l4bg0jb7@duck.com> | 2023-10-26 13:39:57 +0200 | 
|---|---|---|
| committer | hackthetime <l4bg0jb7@duck.com> | 2023-10-26 13:39:57 +0200 | 
| commit | 056b3d827379bba77d5ca370a1b257a1cd45bc6b (patch) | |
| tree | c4a888a387c8638a23a42a8e1613cc8a3e866935 /common | |
| parent | 6afd670932d9ee2f2633bfcb5355055e8e41da01 (diff) | |
| download | BBsentials-056b3d827379bba77d5ca370a1b257a1cd45bc6b.tar.gz BBsentials-056b3d827379bba77d5ca370a1b257a1cd45bc6b.tar.bz2 BBsentials-056b3d827379bba77d5ca370a1b257a1cd45bc6b.zip | |
readded disconnect check
Diffstat (limited to 'common')
| -rw-r--r-- | common/src/main/java/de/hype/bbsentials/common/communication/BBsentialConnection.java | 16 | 
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) { | 
