diff --git a/src/Info.plist b/src/Info.plist index dff6d15..fcaba38 100644 --- a/src/Info.plist +++ b/src/Info.plist @@ -25,7 +25,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 3.1.0-beta + 3.1.0-rc1 CFBundleSignature abgK CFBundleURLTypes @@ -49,7 +49,7 @@ CFBundleVersion - 917 + 918 Fabric Kits diff --git a/src/WLConnection.m b/src/WLConnection.m index bf41dcc..725559f 100644 --- a/src/WLConnection.m +++ b/src/WLConnection.m @@ -210,7 +210,7 @@ - (void)monitorArticleAtBackground { NSTextCheckingResult *result; NSString *combinedString=@""; for( WLArticle* article in resultArray) { - if(article.needTrack > 0 && article.astatus < 2) { // need track AND article is not delteed + if(article.needTrack > 0 && article.astatus < 2 && _connected) { // need track AND article is not delteed STHTTPRequest *r = [STHTTPRequest requestWithURLString:[NSString stringWithFormat:@"https://www.ptt.cc/bbs/%@.html", article.url]]; [r addCookieWithName:@"over18" value:@"1"]; [r setHeaderWithName:@"User-Agent" value:@"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38"]; @@ -354,6 +354,7 @@ - (void)monitorArticleAtBackground { } // end of resultArray > 0 [NSThread sleepForTimeInterval:300]; } // end for inifinte loop + return; }); } }