diff --git a/rgb.py b/rgb.py index 6fe00f4..3c224ba 100755 --- a/rgb.py +++ b/rgb.py @@ -45,6 +45,7 @@ if __name__ == "__main__": while True: data = connection.recv(1024) if not data: + # connection lost, reestablish connection connection, client_address = server.accept() continue rgb = data.decode()