Skip to content

Commit

Permalink
Call close on KafkaApplication only once
Browse files Browse the repository at this point in the history
Fixes #263
  • Loading branch information
philipp94831 committed Jan 22, 2025
1 parent fc58852 commit 8304a16
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,7 @@ private void startApplication() {

private int execute(final ParseResult parseResult) {
this.startApplication();
final int exitCode = new CommandLine.RunLast().execute(parseResult);
this.close();
return exitCode;
return new CommandLine.RunLast().execute(parseResult);
}

@FunctionalInterface
Expand Down

0 comments on commit 8304a16

Please sign in to comment.