fix: keep delay data

This commit is contained in:
GyDi 2022-12-14 15:29:02 +08:00
parent f06fa3f9b7
commit 97d82b03ab
No known key found for this signature in database
GPG Key ID: 9C3AD40F1F99880A

View File

@ -57,7 +57,10 @@ class DelayManager {
/// 暂时修复provider的节点延迟排序的问题
getDelayFix(proxy: IProxyItem, group: string) {
if (!proxy.provider) return this.getDelay(proxy.name, group);
if (!proxy.provider) {
const delay = this.getDelay(proxy.name, group);
if (delay >= 0 || delay === -2) return delay;
}
if (proxy.history.length > 0) {
// 0ms以error显示