Skip to content

Commit a839540

Browse files
committed
Don't try to join the current thread
1 parent 5507f6d commit a839540

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/github/theholywaffle/teamspeak3/Connection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ void disconnect() {
9898
}
9999

100100
private static boolean joinThread(Thread thread) {
101+
if (thread == Thread.currentThread()) return false;
101102
try {
102103
thread.join();
103104
return false;

0 commit comments

Comments
 (0)