Skip to content

Commit

Permalink
Close the future last.
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed Apr 27, 2023
1 parent c47134f commit e3b7d5d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ private void executeClose(
this.delegate.close();
} catch (final Exception e) {
LOG.debug("close: ", e);
} finally {
close.future.complete(null);
}
} finally {
this.commandExecutor.shutdown();
Expand All @@ -173,6 +171,8 @@ private void executeClose(
} catch (final InterruptedException e) {
Thread.currentThread().interrupt();
}

close.future.complete(null);
}
}

Expand Down

0 comments on commit e3b7d5d

Please sign in to comment.