Skip to content

Commit

Permalink
Fixed python subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
Bardo91 authored and Bardo91 committed Nov 25, 2019
1 parent 57b695f commit c3b7c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/fastcom/Subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def __init__(self, _host, _port):
# Create socket
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.server_address = (_host, _port)

# Ensure connection
#self.sock.setblocking(False)
#self.sock.settimeout(0.2)
Expand All @@ -52,6 +51,7 @@ def __init__(self, _host, _port):
# except socket.timeout:
# pass
#
self.sock.sendto(b'1', self.server_address)
receivedConnection = True
self.sock.setblocking(True)

Expand Down

0 comments on commit c3b7c32

Please sign in to comment.