use timeout

This commit is contained in:
Mylloon 2023-04-01 15:23:11 +02:00
parent 6f96f1f080
commit 2fb46c5cbe
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -67,8 +67,7 @@ class Hack():
try:
pm = Pymem("csgo.exe")
except:
# Timeout
sleep(.5)
sleep(self.timeout)
else:
print("Process found!") if verbose else None
process_found = True