Update of /cvsroot/freevo/kaa/base/src/notifier
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16063
Modified Files:
callback.py
Log Message:
Sanity check to detect if Python is shutting down.
Index: callback.py
===================================================================
RCS file: /cvsroot/freevo/kaa/base/src/notifier/callback.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** callback.py 19 Jul 2005 01:48:41 -0000 1.11
--- callback.py 19 Jul 2005 05:51:37 -0000 1.12
***************
*** 275,278 ****
--- 275,282 ----
save_args, save_kwargs = self._args, self._kwargs
+ if not unweakref_data:
+ # Shutdown
+ return False
+
# Remove weakrefs from user data before invoking the callback.
self._args = unweakref_data(self._args)
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog