]> 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)
committerKevin Harwell <kharwell@digium.com>
Tue, 26 Apr 2022 20:36:59 +0000 (15:36 -0500)
commitae1373d12d0f774fffa3c965c542c9f0b137fe95
tree1dba20cfd86193cb01663c212f7db70626147547
parent2fb8667908a688a9b6568c7a51e5e20ad3b2d6d7
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