From cf54434f5e30d89885bfbea799f2c6c1224125ff Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 23 Jun 2011 16:54:59 -0400 Subject: [PATCH] CC-2435: Recorded show gets manually cancelled -added 3 second delay before actually cancelling --- python_apps/show-recorder/recorder.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python_apps/show-recorder/recorder.py b/python_apps/show-recorder/recorder.py index 0f8a8857d..88676d4a4 100644 --- a/python_apps/show-recorder/recorder.py +++ b/python_apps/show-recorder/recorder.py @@ -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):