-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(common): servers#startOnPreferredPort no graceful fallback #683
The code of the method was not waiting for a promise to resolve which was masking the underlying exception that the code was supposed to catch and examine in order to determine if it should perform a fallback of binding to port zero or not. Fixed it by making sure the initial try of the preferred port allocation is awaited for so that the exception is thrown where it is expected by the algorithm. Fixes #683 Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
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
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