Skip to content

Commit 5e54ec7

Browse files
author
James Boulton
committed
relax tcp connection pol time
1 parent beebf90 commit 5e54ec7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dashio/tcp_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"""
2424

2525
from __future__ import annotations
26+
2627
import json
2728
import logging
2829
import threading
@@ -36,7 +37,6 @@
3637
from .device import Device
3738
from .zeroconf_service import ZeroconfService
3839

39-
4040
logger = logging.getLogger(__name__)
4141

4242

@@ -301,7 +301,7 @@ def run(self):
301301

302302
while self.running:
303303
try:
304-
socks = dict(poller.poll(1))
304+
socks = dict(poller.poll(100))
305305
except zmq.error.ContextTerminated:
306306
break
307307
if self.tcpsocket in socks:

0 commit comments

Comments
 (0)