summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-03-14 00:57:43 +0100
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-03-14 00:57:43 +0100
commit45cc12d6658547ddd1466a7c3201c5d006008ddd (patch)
tree12bed370709c9c3c202204234c655a403079cc59
parentc8754d47db8e95cb1720d544b45c714cfc207df6 (diff)
trx_toolkit/udp_link.py: cosmetic: setblocking() takes bool
-rw-r--r--src/target/trx_toolkit/udp_link.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/trx_toolkit/udp_link.py b/src/target/trx_toolkit/udp_link.py
index 06026943..43a4815a 100644
--- a/src/target/trx_toolkit/udp_link.py
+++ b/src/target/trx_toolkit/udp_link.py
@@ -28,7 +28,7 @@ class UDPLink:
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.sock.bind((bind_addr, bind_port))
- self.sock.setblocking(0)
+ self.sock.setblocking(False)
# Save remote info
self.remote_addr = remote_addr