Skip to content

Commit

Permalink
🐛 ConnectTask restore interrupt flag
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGraversen committed Jan 31, 2020
1 parent aeb72e2 commit 28c7967
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ConnectTask implements Callable<MinecraftClient> {
public MinecraftClient call() throws Exception {
int currentAttempt = 1;

while (currentAttempt <= connectOptions.getMaxRetries()) {
while (currentAttempt <= connectOptions.getMaxRetries() && !Thread.currentThread().isInterrupted()) {
Logger.debug("Connection attempt {}", currentAttempt);
currentAttempt++;

Expand Down

0 comments on commit 28c7967

Please sign in to comment.