cc-4105: Tweaked config params. Fixed error checking. Fixed unicode stuff. Removed redundant php

This commit is contained in:
Rudi Grinberg 2012-07-30 10:26:46 -04:00
parent c97857a138
commit 5f1024bb7d
5 changed files with 10 additions and 6 deletions

View file

@ -5,7 +5,7 @@ from media.monitor.toucher import RepeatTimer
class EventDrainer(Loggable):
def __init__(self, connection, interval=1):
def cb():
try: connection.drain_events(timeout=0.1)
try: connection.drain_events(timeout=0.3)
except socket.timeout: pass
except Exception as e:
self.logger.error("Error flushing events")