pytgvoip_pyrogram
pytgvoip_pyrogram copied to clipboard
Freezing
Looks like this line of code makes all threads froze(blocks entire script) if a call is discarded by calling end so fast(0.5-2s after start):
https://github.com/bakatrouble/pytgvoip_pyrogram/blob/13c0a195547810dc57b00c793b3fb990b6a5ef06/tgvoip_pyrogram/base_call.py#L134
And this helps to avoid that:
import time
# ...
del self.ctrl
time.sleep(0)
# ...
I am new in python and may wrong. Can someone to confirm that?