]> 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:42 +0000 (15:36 -0500)
commitd33050f172859f45bc8fe1319e9725ee3e0b8173
tree5a468088c51ea513e4a6d34629b6b72ad8506006
parent069a996bd8b65621bf68a8c7ffac1d50b4622f01
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