diff options
author | hackthetime <l4bg0jb7@duck.com> | 2023-10-05 13:49:09 +0200 |
---|---|---|
committer | hackthetime <l4bg0jb7@duck.com> | 2023-10-05 13:49:09 +0200 |
commit | 2b2b36dbadf2eb75809f9a53e2a2c0b87c85508a (patch) | |
tree | 33abc3c2cc685b233d4816d03f412e4daa03a0de /src/main/java/de/hype/bbsentials/communication | |
parent | 77b627252c4e22b28cfdf1aa561c621d1e8ca552 (diff) | |
download | BBsentials-2b2b36dbadf2eb75809f9a53e2a2c0b87c85508a.tar.gz BBsentials-2b2b36dbadf2eb75809f9a53e2a2c0b87c85508a.tar.bz2 BBsentials-2b2b36dbadf2eb75809f9a53e2a2c0b87c85508a.zip |
bug fix for the Disconnect Packet not reconnecting.
added a custom random delay to the Packet to allow setting a custom delay time server side to reduce load at the reconnect time.
Diffstat (limited to 'src/main/java/de/hype/bbsentials/communication')
-rw-r--r-- | src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java | 2 |
1 files changed, 1 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 1d1e3c1..0d43bd9 100644 --- a/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java +++ b/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java @@ -422,7 +422,7 @@ public class BBsentialConnection { else { BBsentials.conditionalReconnectToBBserver(); } - }, (long) (packet.waitBeforeReconnect[i] + (Math.random() * packet.random)), TimeUnit.SECONDS); + }, (long) (packet.waitBeforeReconnect[i] + (Math.random() * packet.randomExtraDelay)), TimeUnit.SECONDS); } } |