重构批量下载逻辑,优化历史显示和下载管理
This commit is contained in:
@@ -58,6 +58,17 @@ class ProgressManager {
|
||||
: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取总连接数
|
||||
*/
|
||||
getTotalListenerCount() {
|
||||
let total = 0;
|
||||
for (const listeners of this.progressListeners.values()) {
|
||||
total += listeners.length;
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
/**
|
||||
* 清理所有监听器
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user