Skip to content

Commit 2c135da

Browse files
blanexiexiezhicheng
and
xiezhicheng
authored
#1172 问题的解决 (#1173)
Co-authored-by: xiezhicheng <[email protected]>
1 parent 25c2d95 commit 2c135da

File tree

1 file changed

+1
-1
lines changed
  • webmagic-core/src/main/java/us/codecraft/webmagic

1 file changed

+1
-1
lines changed

webmagic-core/src/main/java/us/codecraft/webmagic/Spider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public Spider scheduler(Scheduler scheduler) {
187187
*/
188188
public Spider setScheduler(Scheduler updateScheduler) {
189189
checkIfRunning();
190-
SpiderScheduler oldScheduler = this.scheduler;
190+
Scheduler oldScheduler = scheduler.getScheduler();
191191
scheduler.setScheduler(updateScheduler);
192192
if (oldScheduler != null) {
193193
Request request;

0 commit comments

Comments
 (0)