Skip to content
This repository was archived by the owner on Dec 5, 2020. It is now read-only.

Commit 1a5120d

Browse files
committed
Fixed the reattach thread
1 parent 85dbcf3 commit 1a5120d

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/club/moddedminecraft/polychat/bukkitclient/BukkitClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public void onEnable() {
6464
handleConfiguration(this.getDataFolder());
6565
handlePrefix();
6666
reattachThread = new ReattachThread(5000);
67+
reattachThread.start(); //actually start the thread
6768
playerThread = new ActivePlayerThread(30000, properties.getProperty("server_id", "DEFAULT_ID"));
6869
handleClientConnection();
6970

src/club/moddedminecraft/polychat/bukkitclient/threads/ReattachThread.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public ReattachThread(int interval) {
2525
@Override
2626
protected void run() throws InterruptedException, IOException {
2727
try {
28-
2928
if (BukkitClient.messageBus == null || (BukkitClient.messageBus.isSocketClosed())) {
3029
//Tells players ingame that the connection failed
3130
if (isConnected) {

0 commit comments

Comments
 (0)