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

Commit 85dbcf3

Browse files
committed
Fixed #3
1 parent a43d381 commit 85dbcf3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ public void onDisable() {
100100
ServerStatusMessage offlineMsg = new ServerStatusMessage(properties.getProperty("server_id"), idJson, (short) 2);
101101
sendMessage(offlineMsg);
102102

103+
try {
104+
//Makes sure message has time to send
105+
Thread.sleep(2000);
106+
} catch (InterruptedException ignored) {
107+
}
108+
109+
messageBus.stop();
110+
103111
//TODO: Close Threads
104112

105113
}

0 commit comments

Comments
 (0)