CC-2784: Stopping rabbitmq-server causes pypo CPU usage to increase dramatically

-fixed
This commit is contained in:
martin 2011-09-08 12:17:42 -04:00
parent b2db168a10
commit 6dab211a12
5 changed files with 39 additions and 23 deletions

View file

@ -7,6 +7,7 @@ import datetime
import os
import sys
import shutil
import socket
from configobj import ConfigObj
@ -289,10 +290,12 @@ class CommandListener(Thread):
try:
# block until 5 seconds before the next show start
self.connection.drain_events(timeout=self.time_till_next_show)
except Exception, e:
self.logger.info(e)
except socket.timeout, s:
self.logger.info(s)
# start recording
self.start_record()
except Exception, e:
time.sleep(3)
loops += 1