diff --git a/pymumble_py3/mumble.py b/pymumble_py3/mumble.py index fab5482..fade51c 100644 --- a/pymumble_py3/mumble.py +++ b/pymumble_py3/mumble.py @@ -63,7 +63,6 @@ def __init__(self, host, user, port=64738, password='', certfile=None, keyfile=N self.certfile = certfile self.keyfile = keyfile self.reconnect = reconnect - self.ping_stats = {"last_rcv": 0, "time_send": 0, "nb": 0, "avg": 40.0, "var": 0.0} self.tokens = tokens self.__opus_profile = PYMUMBLE_AUDIO_TYPE_OPUS_PROFILE @@ -102,6 +101,7 @@ def init_connection(self): self.commands = commands.Commands() # manage commands sent between the main and the mumble threads self.receive_buffer = bytes() # initialize the control connection input buffer + self.ping_stats = {"last_rcv": 0, "time_send": 0, "nb": 0, "avg": 40.0, "var": 0.0} # Set / reset ping stats def run(self): """Connect to the server and start the loop in its thread. Retry if requested"""