Author: tack
Date: Fri Mar 31 04:08:05 2006
New Revision: 1369

Modified:
   trunk/base/src/notifier/thread.py

Log:
Silence stupid exceptions on shutdown.


Modified: trunk/base/src/notifier/thread.py
==============================================================================
--- trunk/base/src/notifier/thread.py   (original)
+++ trunk/base/src/notifier/thread.py   Fri Mar 31 04:08:05 2006
@@ -141,7 +141,9 @@
     """
     Return True if the caller is in the main thread right now.
     """
-    return threading.currentThread() == _thread_notifier_mainthread
+    # If threading module is None, assume main thread.  (Silences pointless
+    # exceptions on shutdown.)
+    return (not threading) or threading.currentThread() == 
_thread_notifier_mainthread
 
 
 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to