From 5dd66ea9a70aa250b802924558f888fd11c6f24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=AE=87=E8=88=AA?= Date: Sun, 23 Jul 2017 19:31:14 +0800 Subject: [PATCH] while network err and not fill subscribe name using New Subscribe --- ShadowsocksX-NG/Subscribe.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShadowsocksX-NG/Subscribe.swift b/ShadowsocksX-NG/Subscribe.swift index 33caf65..4df98ec 100644 --- a/ShadowsocksX-NG/Subscribe.swift +++ b/ShadowsocksX-NG/Subscribe.swift @@ -53,7 +53,7 @@ class Subscribe: NSObject{ if newGroupName != "" { return groupName = newGroupName } if self.cache != "" { return getGroupNameFromRes(resString: cache) } sendRequest(url: self.subscribeFeed, options: "", callback: { resString in - if resString == "" { return } + if resString == "" { return self.groupName = "New Subscribe" } getGroupNameFromRes(resString: resString) self.cache = resString })