Skip to content

Commit

Permalink
NIFI-7576 Make http server init synchronized
Browse files Browse the repository at this point in the history
so that multiple threads cannot enter `createHttpServerFromService`
simultaneously
  • Loading branch information
Wastack committed Jun 23, 2020
1 parent 4cec4f1 commit 7edef8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private void shutdownHttpServer(Server toShutdown) {
}
}

private void createHttpServerFromService(final ProcessContext context) throws Exception {
synchronized private void createHttpServerFromService(final ProcessContext context) throws Exception {
if(initialized.get()) {
return;
}
Expand Down

0 comments on commit 7edef8d

Please sign in to comment.