CC-2435: Recorded show gets manually cancelled

-added 3 second delay before actually cancelling
This commit is contained in:
martin 2011-06-23 16:54:59 -04:00
parent 66e73b930d
commit cf54434f5e

View file

@ -86,6 +86,12 @@ class ShowRecorder(Thread):
return code, filepath
def cancel_recording(self):
#add 3 second delay before actually cancelling the show. The reason
#for this is because it appears that ecasound starts 1 second later than
#it should, and therefore this method is sometimes incorrectly called 1
#second before the show ends.
time.sleep(3)
#send signal interrupt (2)
self.logger.info("Show manually cancelled!")
if (self.p is not None):