Skip to content

Commit

Permalink
fix: Force task be cancelled in 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Oct 4, 2023
1 parent 69ae73d commit c43d39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmcl-runtime/lib/managers/TaskManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default class TaskManager extends Manager {
break
case 'cancel':
this.logger.log(`Request ${id} to cancel`)
this.record[id].cancel()
this.record[id].cancel(5000)
break
default:
}
Expand Down

0 comments on commit c43d39b

Please sign in to comment.