Sleep 1 second to avoid high CPU load

more_events
Roberto Hueso Gomez 2020-04-14 11:48:13 +02:00
parent d6c5f2443a
commit 8a927a352d
1 changed files with 1 additions and 0 deletions

View File

@ -125,6 +125,7 @@ class ogClient:
def run(self):
while 1:
time.sleep(1)
sock = self.get_socket()
state = self.get_state()