mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Somehow I forgot a time.sleep in ChannelPluginTestCase._feedMsg, so it was sucking up 100% CPU.
This commit is contained in:
parent
ecaceff723
commit
75b33b8b44
@ -407,6 +407,7 @@ class ChannelPluginTestCase(PluginTestCase):
|
|||||||
fed = time.time()
|
fed = time.time()
|
||||||
response = self.irc.takeMsg()
|
response = self.irc.takeMsg()
|
||||||
while response is None and time.time() - fed < timeout:
|
while response is None and time.time() - fed < timeout:
|
||||||
|
time.sleep(0.1)
|
||||||
drivers.run()
|
drivers.run()
|
||||||
response = self.irc.takeMsg()
|
response = self.irc.takeMsg()
|
||||||
if response is not None:
|
if response is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user