drivers: modem: hl7800: UDP socket not closed
Ensure UDP socket is always closed when offload_put is called. Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
This commit is contained in:
parent
d3283231a5
commit
72d54055a3
1 changed files with 1 additions and 3 deletions
|
@ -4577,9 +4577,7 @@ static int offload_put(struct net_context *context)
|
|||
|
||||
wakeup_hl7800();
|
||||
|
||||
if (sock->state != SOCK_SERVER_CLOSED) {
|
||||
send_at_cmd(sock, cmd1, MDM_CMD_SEND_TIMEOUT, 0, false);
|
||||
}
|
||||
send_at_cmd(sock, cmd1, MDM_CMD_SEND_TIMEOUT, 0, false);
|
||||
|
||||
if (sock->type == SOCK_STREAM) {
|
||||
/* delete session */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue