BathyScapheの中身をぐちゃぐちゃに
Revision | cbde8db9d90eea5b5362b0acc714e1d0dbba2fd9 (tree) |
---|---|
Zeit | 2012-07-07 20:22:07 |
Autor | masakih <masakih@b61f...> |
Commiter | masakih |
Fix #28917.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/bathyscaphe/bathyscaphe/trunk@1438 b61fe662-1e22-0410-9ebe-d5d0f6be7d5c
@@ -152,6 +152,7 @@ static BOOL shouldCheckItemHeader(id dict); | ||
152 | 152 | id pool2 = [[NSAutoreleasePool alloc] init]; |
153 | 153 | [loop runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; |
154 | 154 | [pool2 release]; |
155 | + if(self.isInterrupted) return; | |
155 | 156 | } |
156 | 157 | if (!(checker.lastError) && checker.isUpdated) { |
157 | 158 | [updatedThreads addObject:thread]; |
@@ -172,6 +173,7 @@ static BOOL shouldCheckItemHeader(id dict); | ||
172 | 173 | [pool release]; |
173 | 174 | } |
174 | 175 | |
176 | + if(self.isInterrupted) return; | |
175 | 177 | [self updateDB:updatedThreads]; |
176 | 178 | |
177 | 179 | numberOfChecked = numberOfAllTarget - numberOfSkip; |
@@ -181,8 +183,8 @@ static BOOL shouldCheckItemHeader(id dict); | ||
181 | 183 | [[CMRFavoritesManager defaultManager] decrementHEADCheckCount]; |
182 | 184 | } |
183 | 185 | |
186 | + if(self.isInterrupted) return; | |
184 | 187 | [targetList updateCursor]; |
185 | - | |
186 | 188 | } |
187 | 189 | |
188 | 190 | - (NSArray *)threadInfomations |
@@ -81,7 +81,10 @@ | ||
81 | 81 | } |
82 | 82 | |
83 | 83 | - (void)excute {} |
84 | -- (void)cancel:(id)sender {} | |
84 | +- (void)cancel:(id)sender | |
85 | +{ | |
86 | + self.isInterrupted = YES; | |
87 | +} | |
85 | 88 | |
86 | 89 | - (void)finalizeWhenInterrupted |
87 | 90 | { |
@@ -203,9 +203,10 @@ fail: | ||
203 | 203 | } |
204 | 204 | } |
205 | 205 | |
206 | -abort: | |
206 | + if(self.isInterrupted) goto abort; | |
207 | 207 | [self.targetList updateCursor]; |
208 | 208 | |
209 | +abort: | |
209 | 210 | [[NSNotificationCenter defaultCenter] removeObserver:self]; |
210 | 211 | } |
211 | 212 |
@@ -1,3 +1,8 @@ | ||
1 | +2012-07-07 masakih <masakih@users.sourceforge.jp> | |
2 | + * application/source/browser/BSBoardListItemHEADCheckTask.m: | |
3 | + * application/source/browser/BSThreadListTask.m: | |
4 | + * application/source/browser/BSThreadsListOPTask.m: | |
5 | + 更新処理終了後にクラッシュする問題を修正。 | |
1 | 6 | 2012-07-07 tsawada2 <tsawada2@users.sourceforge.jp> |
2 | 7 | * frameworks/SGFoundation/framework/source/extensions/URL/NSURL-SGExtensions.m |
3 | 8 | fragment が複数含まれる URL 文字列を NSURL に変換しようとすると nil になる NSURL のバグを回避。 |