mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 21:01:02 -05:00
Ensure we aren't waiting for a connection when we've been disconnected by the user.
This commit is contained in:
parent
fa806e58fe
commit
b7a1cdf2cc
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ public class TcpClientSession extends TcpSession {
|
|||
|
||||
ChannelFuture future = bootstrap.connect().sync();
|
||||
if(future.isSuccess()) {
|
||||
while(!isConnected()) {
|
||||
while(!isConnected() && !disconnected) {
|
||||
try {
|
||||
Thread.sleep(5);
|
||||
} catch(InterruptedException e) {
|
||||
|
|
Loading…
Reference in a new issue