Fix timed disconnect.

This commit is contained in:
skelmis 2020-08-28 00:55:51 +12:00
parent 88f2ebd73d
commit eba4aa38d4

View File

@ -187,14 +187,10 @@ class Player:
print(f"Connected to server with: {self.auth_token.username}") print(f"Connected to server with: {self.auth_token.username}")
count = 0
while True: while True:
time.sleep(1) time.sleep(1)
count += 1
if self.kickout: if self.kickout:
break break
elif count == 50:
break
def Disconnect(self): def Disconnect(self):
""" """