Skip to content

Commit f055c01

Browse files
committed
fix: new scheduled thread pool proxy should set reject handler from the origin
1 parent 2422c58 commit f055c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/dromara/dynamictp/core/support/proxy/ScheduledThreadPoolExecutorProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class ScheduledThreadPoolExecutorProxy extends ScheduledThreadPoolExecuto
5252
public ScheduledThreadPoolExecutorProxy(ScheduledThreadPoolExecutor executor) {
5353
super(executor.getCorePoolSize(), executor.getThreadFactory());
5454
this.rejectHandlerType = executor.getRejectedExecutionHandler().getClass().getSimpleName();
55-
setRejectedExecutionHandler(RejectHandlerGetter.getProxy(getRejectedExecutionHandler()));
55+
setRejectedExecutionHandler(RejectHandlerGetter.getProxy(executor.getRejectedExecutionHandler()));
5656
}
5757

5858
@Override

0 commit comments

Comments
 (0)