Skip to content

Commit

Permalink
Use :executor during connection recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Klishin committed Aug 6, 2013
1 parent d05002b commit 6ae5050
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/java/com/novemberain/langohr/Connection.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ private void recoverShutdownHooks() {
}

private void recoverConnection() throws IOException {
this.delegate = this.cf.newConnection();
ExecutorService es = (ExecutorService)this.options.valAt(EXECUTOR_KEYWORD);
this.delegate = this.cf.newConnection(es);
}

public boolean automaticRecoveryEnabled() {
Expand Down

0 comments on commit 6ae5050

Please sign in to comment.