]> git.ipfire.org Git - thirdparty/asterisk.git/commit
manager: Terminate session on write error.
authorJoshua C. Colp <jcolp@sangoma.com>
Mon, 25 Apr 2022 23:39:10 +0000 (20:39 -0300)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Tue, 26 Apr 2022 19:12:49 +0000 (14:12 -0500)
commit18d2f273b506895bf435a40e37f17ed4afafcd7e
treed6a080f629c84d2330ed7ea71f397ed6f48dfaae
parentb42934d019ed33a122f9d52309c26a5b2b51a2bc
manager: Terminate session on write error.

On a write error to an AMI session a flag was set to
indicate that the write error had occurred, with the
expected result being that the session be terminated.
This was not actually happening and instead writing
would continue to be attempted.

This change adds a check for the write error and causes
the session to actually terminate.

ASTERISK-29948

Change-Id: Icaf5d413d4c0d5dc78292a17287fecc8720a31a5
main/manager.c