Commit e3b95eec authored by Jonas Jelten's avatar Jonas Jelten
Browse files

reuse the socket to avoid "address in use"

parent f822f7f4
......@@ -88,6 +88,8 @@ class VideoScreen:
print("launching on %s:%d" % (self.address, self.port))
self.sock = socket.socket()
self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.sock.bind((self.address, self.port))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment