Skip to content

Commit

Permalink
Make users of WorkRequestHandler do System.exit at the end, to preven…
Browse files Browse the repository at this point in the history
…t hanging threads from keeping the worker alive.

RELNOTES: none
PiperOrigin-RevId: 435284030
  • Loading branch information
larsrc-google authored and copybara-github committed Mar 17, 2022
1 parent 73f5879 commit 9515e9b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public static void main(String[] args) {
workerHandler.processRequests();
} catch (IOException e) {
System.err.println(e.getMessage());
} finally {
// Prevent hanging threads from keeping the worker alive.
System.exit(1);
}
} else {
Expand Down

0 comments on commit 9515e9b

Please sign in to comment.