Co-authored-by: xiezhicheng <xiezhicheng@xiaomi.com>
@ -187,7 +187,7 @@ public class Spider implements Runnable, Task {
*/
public Spider setScheduler(Scheduler updateScheduler) {
checkIfRunning();
SpiderScheduler oldScheduler = this.scheduler;
Scheduler oldScheduler = scheduler.getScheduler();
scheduler.setScheduler(updateScheduler);
if (oldScheduler != null) {
Request request;