Skip to content

Commit dfd5621

Browse files
authored
Merge pull request #10 from crispmark/fix-auth-exception-test
fixed auth exception test
2 parents 39ea1e6 + 4862319 commit dfd5621

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/github/shyiko/mysql/binlog/BinaryLogClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,9 @@ public void run() {
837837
try {
838838
setConnectTimeout(timeout);
839839
connect();
840+
} catch (IOException e) {
841+
exceptionReference.set(e);
842+
countDownLatch.countDown(); // making sure we don't end up waiting whole "timeout"
840843
} catch (Exception e) {
841844
exceptionReference.set(new IOException(e)); // method is asynchronous, catch all exceptions so that they are not lost
842845
countDownLatch.countDown(); // making sure we don't end up waiting whole "timeout"

0 commit comments

Comments
 (0)