svnno****@sourc*****
svnno****@sourc*****
2008年 2月 10日 (日) 22:51:15 JST
Revision: 370 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=370 Author: flyson Date: 2008-02-10 22:51:15 +0900 (Sun, 10 Feb 2008) Log Message: ----------- エラー時にちゃんとトランザクションが終了できていなかったのを修正 Modified Paths: -------------- trunk/bbs2chreader/chrome/content/bbs2chreader/board/items.js trunk/bbs2chreader/chrome/content/bbs2chreader/board/log-manager.js -------------- next part -------------- Modified: trunk/bbs2chreader/chrome/content/bbs2chreader/board/items.js =================================================================== --- trunk/bbs2chreader/chrome/content/bbs2chreader/board/items.js 2008-02-10 13:47:45 UTC (rev 369) +++ trunk/bbs2chreader/chrome/content/bbs2chreader/board/items.js 2008-02-10 13:51:15 UTC (rev 370) @@ -290,10 +290,10 @@ } this._items.push(item); } - statement.reset(); }catch(ex){ Components.utils.reportError(ex); }finally{ + statement.reset(); database.commitTransaction(); } Modified: trunk/bbs2chreader/chrome/content/bbs2chreader/board/log-manager.js =================================================================== --- trunk/bbs2chreader/chrome/content/bbs2chreader/board/log-manager.js 2008-02-10 13:47:45 UTC (rev 369) +++ trunk/bbs2chreader/chrome/content/bbs2chreader/board/log-manager.js 2008-02-10 13:51:15 UTC (rev 370) @@ -122,10 +122,10 @@ var item = gBoardListBox.appendItem(boardTitle, boardID); item.setAttribute("boardURL", boardURL); } - statement.reset(); }catch(ex){ Components.utils.reportError(ex); }finally{ + statement.reset(); database.commitTransaction(); } } @@ -208,10 +208,10 @@ } gThreadItems.push(treeItem); } - statement.reset(); }catch(ex){ Components.utils.reportError(ex); }finally{ + statement.reset(); database.commitTransaction(); }