Skip to content

Commit

Permalink
fix(core): 修复已经在暂停状态,但是依然在答题的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
ennnncy committed Mar 27, 2024
1 parent b5926aa commit 3f04e21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/core/worker/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ export class OCSWorker<E extends RawElements = RawElements> extends CommonEventE
let res: ResolverResult | undefined;

try {
/** 检查是否暂停中 */
if (this.isStop) {
await waitForContinuate(() => this.isStop);
}
/** 等待搜题完毕 */
await waitForRequested(result);

Expand Down

0 comments on commit 3f04e21

Please sign in to comment.