Skip to content

Commit

Permalink
fix one future completion error
Browse files Browse the repository at this point in the history
  • Loading branch information
ywangd committed Oct 10, 2024
1 parent c6d7524 commit 0e766dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ private Executor getInternalSendExceptionExecutor(Executor handlerExecutor) {
if (lifecycle.stoppedOrClosed()) {
// too late to try and dispatch anywhere else, let's just use the calling thread
return EsExecutors.DIRECT_EXECUTOR_SERVICE;
} else if (handlerExecutor == EsExecutors.DIRECT_EXECUTOR_SERVICE) {
} else if (handlerExecutor == EsExecutors.DIRECT_EXECUTOR_SERVICE && enableStackOverflowAvoidance) {
// if the handler is non-forking then dispatch to GENERIC to avoid a possible stack overflow
return threadPool.generic();
} else {
Expand Down

0 comments on commit 0e766dc

Please sign in to comment.