Skip to content

Commit

Permalink
Update WatameBot.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AshlyneS committed Nov 24, 2023
1 parent a64a8cd commit 5592f7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net/foxgenesis/watame/WatameBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,8 @@ private static <T> T attemptConnection(ConnectionSupplier<T> supplier, long dela
try {
logger.info("Attempting to connect to {}", msg);
out = supplier.connect();

break;
if (out != null)
break;
} catch (Exception e) {
logger.error("Failed to connect to {}: {}", msg, e.getMessage());
}
Expand Down

0 comments on commit 5592f7f

Please sign in to comment.