fix: correct "this" context in getData method

This commit is contained in:
SimonAllen 2025-03-18 21:11:22 +08:00 committed by gemstone
parent 8ad54a15a3
commit 8769e33119

View File

@ -22,7 +22,7 @@ class DASH extends EventEmitter {
return new Promise((resolve, reject) => {
const task = new Task(url, resolve, range)
task.once('error', err => {
self.emit('error', err)
this.emit('error', err)
})
})
}