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

Commit 95a3655

Browse files
committed
Fix reattach firing before thread started
1 parent 1a5120d commit 95a3655

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void onEnable() {
6464
handleConfiguration(this.getDataFolder());
6565
handlePrefix();
6666
reattachThread = new ReattachThread(5000);
67-
reattachThread.start(); //actually start the thread
67+
6868
playerThread = new ActivePlayerThread(30000, properties.getProperty("server_id", "DEFAULT_ID"));
6969
handleClientConnection();
7070

@@ -93,6 +93,8 @@ public void run() {
9393
}
9494
}
9595
}, 0L, 20L);
96+
97+
reattachThread.start(); //actually start the thread at the end so the main thread is running already
9698
}
9799

98100
@Override

0 commit comments

Comments
 (0)