-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AutoReconnect goes into an endless loop #31
Comments
After about how much to wait for a fix? Connection problem is very important. |
@ettoreleandrotognoli
|
It working
|
add python-ami/asterisk/ami/client.py Line 285 in dea9d37
self.join() after python-ami/asterisk/ami/client.py Line 325 in dea9d37
|
In my case, adding self._ami_client.disconnect() in the run function did the trick: def run(self):
self.finished.wait(self.delay)
while not self.finished.is_set():
if not self.ping():
self._ami_client.disconnect()
self.try_reconnect()
self.finished.wait(self.delay) |
Hey. Faced a problem. When a session fails, it often does not work through reconnection. The try_reconnect method goes into an infinite loop and always throws a BrokenPipeError exception: [Errno 32] Broken pipe
The text was updated successfully, but these errors were encountered: