diff --git a/pyVSSSReferee/RefereeComm.py b/pyVSSSReferee/RefereeComm.py index ee58907..0db98d9 100644 --- a/pyVSSSReferee/RefereeComm.py +++ b/pyVSSSReferee/RefereeComm.py @@ -49,6 +49,8 @@ def __init__(self, config_file = None): self._color = None self._quadrant = None self._foul = None + + self.kill_recieved = False def get_last_foul(self): """Returns last foul information. @@ -68,7 +70,7 @@ def run(self): print("Starting referee...") self.referee_sock = self._create_socket() print("Referee completed!") - while True: + while not self.kill_recieved: c = vssref_command_pb2.VSSRef_Command() data = self.referee_sock.recv(1024) c.ParseFromString(data) diff --git a/requirements.txt b/requirements.txt index 154300f..3d88f68 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -protobuf==3.6.1 \ No newline at end of file +protobuf == 3.20.3 diff --git a/setup.py b/setup.py index ac44f19..29c2b17 100644 --- a/setup.py +++ b/setup.py @@ -10,5 +10,5 @@ author="Project-Neon", author_email="projectneon@gmail.com", license="GNU", - install_requires=['protobuf==3.6.1'], + install_requires=['protobuf==3.20.3'], )