FreeCalypso > hg > themwi-system-sw
changeset 106:245dc4837b56
sip-in: fix bugs in last commit
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 27 Sep 2022 23:44:07 -0800 |
parents | 9213ec8b434b |
children | 372209628038 |
files | sip-in/mncc_sock.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sip-in/mncc_sock.c Tue Sep 27 23:00:52 2022 -0800 +++ b/sip-in/mncc_sock.c Tue Sep 27 23:44:07 2022 -0800 @@ -50,8 +50,10 @@ rc = recv(gsm_socket, &msg, sizeof msg, 0); if (rc <= 0) { syslog(LOG_ERR, "mtcall socket disconnected"); + close(gsm_socket); + gsm_is_connected = 0; shutdown_gsm_conn(); - gsm_is_connected = 0; + return; } if (rc < 4) { syslog(LOG_CRIT, "short read from mtcall socket: %d bytes", rc);