Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2389

Modified Files:
        childapp.py 
Log Message:
avoid duplicate events

Index: childapp.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/childapp.py,v
retrieving revision 1.60
retrieving revision 1.61
diff -C2 -d -r1.60 -r1.61
*** childapp.py 23 Aug 2004 20:38:56 -0000      1.60
--- childapp.py 15 Sep 2004 20:47:42 -0000      1.61
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.61  2004/09/15 20:47:42  dischi
+ # avoid duplicate events
+ #
  # Revision 1.60  2004/08/23 20:38:56  dischi
  # fix osd stop/restart
***************
*** 369,372 ****
--- 372,377 ----
      """
      def __init__(self, app, debugname=None, doeslogging=0, stop_osd=2):
+         self._is_stopped      = False
+         
          rc.register(self.poll, True, 10)
          rc.register(self.stop, True, rc.SHUTDOWN)
***************
*** 419,422 ****
--- 424,430 ----
          stop the child
          """
+         if self._is_stopped:
+             return
+         self._is_stopped = True
          rc.unregister(self.poll)
          rc.unregister(self.stop)
***************
*** 446,451 ****
          stop everything when child is dead
          """
!         if not self.isAlive():
              eventhandler.post(self.stop_event())
              self.stop()
-             
--- 454,458 ----
          stop everything when child is dead
          """
!         if not self.isAlive() and not self._is_stopped:
              eventhandler.post(self.stop_event())
              self.stop()



-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to