cc-4105: Tweaked config params. Fixed error checking. Fixed unicode stuff. Removed redundant php
This commit is contained in:
parent
c97857a138
commit
5f1024bb7d
5 changed files with 10 additions and 6 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue