Author: dmeyer
Date: Tue Mar 20 19:34:56 2007
New Revision: 9370

Modified:
   trunk/tvserver/src/recorder.py

Log:
do not try to send data to the remote entity when it is gone

Modified: trunk/tvserver/src/recorder.py
==============================================================================
--- trunk/tvserver/src/recorder.py      (original)
+++ trunk/tvserver/src/recorder.py      Tue Mar 20 19:34:56 2007
@@ -412,6 +412,12 @@
         the recorder.
         """
         for remote in copy.copy(self.recordings):
+            if not self.entity:
+                # entity is gone
+                log.info('%s: remove %s', self.name, remote.recording.name)
+                self.recordings.remove(remote)
+                continue
+                
             if remote.id == UNKNOWN_ID and not remote.valid:
                 # remove it from the list, looks like the recording
                 # was already removed and not yet scheduled

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to