瀏覽代碼

fix: keep delay data

GyDi 2 年之前
父節點
當前提交
97d82b03ab
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/services/delay.ts

+ 4 - 1
src/services/delay.ts

@@ -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显示