bigboard r7416 - trunk/bigboard/stocks/twitter



Author: marinaz
Date: Fri Jul  4 08:31:10 2008
New Revision: 7416
URL: http://svn.gnome.org/viewvc/bigboard?rev=7416&view=rev

Log:
Stop the polling task when we remove the twitter account.


Modified:
   trunk/bigboard/stocks/twitter/TwitterStock.py

Modified: trunk/bigboard/stocks/twitter/TwitterStock.py
==============================================================================
--- trunk/bigboard/stocks/twitter/TwitterStock.py	(original)
+++ trunk/bigboard/stocks/twitter/TwitterStock.py	Fri Jul  4 08:31:10 2008
@@ -152,8 +152,6 @@
         self.__twitter_account_changed_signal_match = \
             self.__twitter_account.connect_to_signal('Changed', self.__on_twitter_account_changed)
         self.__on_twitter_account_changed()  
-   
-        # TODO: start the polling action here
     
     @log_except(_logger)
     def __on_account_removed(self, acct_path):
@@ -163,7 +161,7 @@
             self.__twitter_account_changed_signal_match.remove()
             self.__twitter_account_changed_signal_match = None 
             self.__twitter_account = None
-            #TODO: will need to stop the polling action here
+            self.__check_twitter_task.stop() 
             self.__box.remove_all() 
             self.__box.append(self.__login_button)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]