OSDN Git Service

TweetTaskManagerにて,タスクを終了してもそのまま残っていたバグを修正.
authorspark_xp <spark_xp@d8c9ecd3-d47d-4367-8645-de82c00e513f>
Wed, 15 Sep 2010 08:03:56 +0000 (08:03 +0000)
committerspark_xp <spark_xp@d8c9ecd3-d47d-4367-8645-de82c00e513f>
Wed, 15 Sep 2010 08:03:56 +0000 (08:03 +0000)
git-svn-id: http://svn.sourceforge.jp/svnroot/nt-manager/NishioTweetManager/trunk@39 d8c9ecd3-d47d-4367-8645-de82c00e513f

src/twitter/task/TweetTaskManager.java

index b1f9929..dd920ba 100644 (file)
@@ -201,14 +201,19 @@ public class TweetTaskManager {
      */
     public boolean shutdownTask(String timerID) {
         boolean found = false;
+        TimerData removeData = null;
         for (TimerData t : timerList) {
             if (t.getTimerID().equals(timerID)) {
                 t.stop();
                 t.shutdown();
                 found = true;
+                removeData = t;
                 break;
             }
         }
+        if( removeData != null ) {
+            this.timerList.remove(removeData);
+        }
         return found;
     }