• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

BathyScapheの中身をぐちゃぐちゃに


Commit MetaInfo

Revisioncbde8db9d90eea5b5362b0acc714e1d0dbba2fd9 (tree)
Zeit2012-07-07 20:22:07
Autormasakih <masakih@b61f...>
Commitermasakih

Log Message

Fix #28917.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/bathyscaphe/bathyscaphe/trunk@1438 b61fe662-1e22-0410-9ebe-d5d0f6be7d5c

Ändern Zusammenfassung

Diff

--- a/application/source/browser/BSBoardListItemHEADCheckTask.m
+++ b/application/source/browser/BSBoardListItemHEADCheckTask.m
@@ -152,6 +152,7 @@ static BOOL shouldCheckItemHeader(id dict);
152152 id pool2 = [[NSAutoreleasePool alloc] init];
153153 [loop runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
154154 [pool2 release];
155+ if(self.isInterrupted) return;
155156 }
156157 if (!(checker.lastError) && checker.isUpdated) {
157158 [updatedThreads addObject:thread];
@@ -172,6 +173,7 @@ static BOOL shouldCheckItemHeader(id dict);
172173 [pool release];
173174 }
174175
176+ if(self.isInterrupted) return;
175177 [self updateDB:updatedThreads];
176178
177179 numberOfChecked = numberOfAllTarget - numberOfSkip;
@@ -181,8 +183,8 @@ static BOOL shouldCheckItemHeader(id dict);
181183 [[CMRFavoritesManager defaultManager] decrementHEADCheckCount];
182184 }
183185
186+ if(self.isInterrupted) return;
184187 [targetList updateCursor];
185-
186188 }
187189
188190 - (NSArray *)threadInfomations
--- a/application/source/browser/BSThreadListTask.m
+++ b/application/source/browser/BSThreadListTask.m
@@ -81,7 +81,10 @@
8181 }
8282
8383 - (void)excute {}
84-- (void)cancel:(id)sender {}
84+- (void)cancel:(id)sender
85+{
86+ self.isInterrupted = YES;
87+}
8588
8689 - (void)finalizeWhenInterrupted
8790 {
--- a/application/source/browser/BSThreadsListOPTask.m
+++ b/application/source/browser/BSThreadsListOPTask.m
@@ -203,9 +203,10 @@ fail:
203203 }
204204 }
205205
206-abort:
206+ if(self.isInterrupted) goto abort;
207207 [self.targetList updateCursor];
208208
209+abort:
209210 [[NSNotificationCenter defaultCenter] removeObserver:self];
210211 }
211212
--- a/changelog.txt
+++ b/changelog.txt
@@ -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+ 更新処理終了後にクラッシュする問題を修正。
16 2012-07-07 tsawada2 <tsawada2@users.sourceforge.jp>
27 * frameworks/SGFoundation/framework/source/extensions/URL/NSURL-SGExtensions.m
38 fragment が複数含まれる URL 文字列を NSURL に変換しようとすると nil になる NSURL のバグを回避。