Skip to content

Commit 4862319

Browse files
committed
fixed auth exception test
1 parent 39ea1e6 commit 4862319

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)