Update of /cvsroot/freevo/freevo/src/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv19122
Modified Files:
rom_drives.py
Log Message:
shut down identify thread before exit to prevent a strange error sometimes
Index: rom_drives.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugins/rom_drives.py,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** rom_drives.py 3 Jan 2004 17:43:15 -0000 1.49
--- rom_drives.py 10 Jan 2004 16:52:19 -0000 1.50
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.50 2004/01/10 16:52:19 dischi
+ # shut down identify thread before exit to prevent a strange error sometimes
+ #
# Revision 1.49 2004/01/03 17:43:15 dischi
# OVERLAY_DIR is always used
***************
*** 107,110 ****
--- 110,116 ----
def init():
+ """
+ create a list of media objects and start the Identify_Thread
+ """
# Add the drives to the config.removable_media list. There doesn't have
# to be any drives defined.
***************
*** 129,132 ****
--- 135,150 ----
+ def shutdown():
+ """
+ shut down the Identify_Thread
+ """
+ global im_thread
+ if im_thread.isAlive():
+ _debug_('stopping Identify_Thread', 2)
+ im_thread.stop = True
+ while im_thread.isAlive():
+ time.sleep(0.1)
+
+
class autostart(plugin.DaemonPlugin):
"""
***************
*** 174,177 ****
--- 192,197 ----
return True
+ def shutdown(self):
+ shutdown()
***************
*** 352,356 ****
return
!
--- 372,377 ----
return
! def shutdown(self):
! shutdown()
***************
*** 711,715 ****
media.drive_status = None
! self.check_all()
! time.sleep(2)
--- 732,745 ----
media.drive_status = None
! if not rc.app():
! # check only in the menu
! self.check_all()
!
! for i in range(4):
! # wait some time
! time.sleep(0.5)
!
! # check if we need to stop
! if hasattr(self, 'stop'):
! return
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog