From 8a927a352dc1eab8a6bfde4340f92465c1ba7441 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gomez Date: Tue, 14 Apr 2020 11:48:13 +0200 Subject: Sleep 1 second to avoid high CPU load --- src/ogClient.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/ogClient.py b/src/ogClient.py index 324aacf..1f8ab03 100644 --- a/src/ogClient.py +++ b/src/ogClient.py @@ -125,6 +125,7 @@ class ogClient: def run(self): while 1: + time.sleep(1) sock = self.get_socket() state = self.get_state() -- cgit v1.2.3-18-g5258