Add highwater mark for client zmq to lower level

This commit is contained in:
Hugvey Central Command 2019-05-13 19:48:13 +02:00
parent 2acfb1c321
commit 019479d916

View file

@ -159,8 +159,8 @@ class VoiceServer(object):
try:
if self.hugvey.cmd_server.muteMic:
logger.log(LOG_BS, 'block recording {}' .format(
self.hugvey.cmd_server.muteMic))
# logger.log(LOG_BS, 'block recording {}' .format(
# self.hugvey.cmd_server.muteMic))
# multiply by 0 to disable audio recording while playback
f = audioop.mul(f, 2, 0)
@ -214,6 +214,7 @@ class VoiceServer(object):
try:
address = "tcp://*:{}".format(self.config['voice']['port'] + self.hugvey.id)
self.voice_socket = self.ctx.socket(zmq.PUB)
self.voice_socket.set_hwm(100)
self.voice_socket.bind(address)
logger.info(