-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ITOAuth2Client: improve shutdown sequence
Remarked while working on #7673: the call to close() may disrupt ongoing token refreshes and / or refresh schedule attempts; the client does close normally eventually, but if DEBUG logs are enabled, many strange errors may be logged. Also, if the executor is scheduling a refresh when close() is called, this may trigger the start of a thread, only to see it being closed immediately after. By guarding the shutdown sequence with a boolean flag, we can achieve a much smoother shutdown sequence.
- Loading branch information
Showing
1 changed file
with
34 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters