pytgvoip_pyrogram icon indicating copy to clipboard operation
pytgvoip_pyrogram copied to clipboard

Freezing

Open Hokid opened this issue 3 years ago • 0 comments

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?

Hokid avatar Dec 03 '22 18:12 Hokid