summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoberto Hueso Gomez <robertohueso96@gmail.com>2020-04-14 11:48:13 +0200
committerRoberto Hueso Gomez <robertohueso96@gmail.com>2020-04-14 11:48:13 +0200
commit8a927a352dc1eab8a6bfde4340f92465c1ba7441 (patch)
tree1661217b595792764f5b4211a1476e312302d3c9 /src
parentd6c5f2443a5e0104bd8eb78454e7cd6d9f765cf0 (diff)
Sleep 1 second to avoid high CPU load
Diffstat (limited to 'src')
-rw-r--r--src/ogClient.py1
1 files changed, 1 insertions, 0 deletions
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()