Merge pull request #53 from CorVous/fixing-infinite-loop
Sleep instead when there's no audio in the buffer
This commit is contained in:
commit
34d2a00608
@ -128,7 +128,7 @@ def main():
|
||||
print(line)
|
||||
# Flush stdout.
|
||||
print('', end='', flush=True)
|
||||
|
||||
else:
|
||||
# Infinite loops are bad for processors, must sleep.
|
||||
sleep(0.25)
|
||||
except KeyboardInterrupt:
|
||||
|
Loading…
Reference in New Issue
Block a user