mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Added a sleep to the spinloop so it doesn't suck up 100% cpu.
This commit is contained in:
parent
fed6273f03
commit
f1a9b3f546
@ -139,6 +139,7 @@ class PluginTestCase(unittest.TestCase):
|
||||
fed = time.time()
|
||||
response = self.irc.takeMsg()
|
||||
while response is None and time.time() - fed < timeout:
|
||||
time.sleep(0.1) # So it doesn't suck up 100% cpu.
|
||||
drivers.run()
|
||||
response = self.irc.takeMsg()
|
||||
return response
|
||||
|
Loading…
Reference in New Issue
Block a user