More concise
This commit is contained in:
parent
c04fb3c845
commit
aff5eabff3
1 changed files with 1 additions and 5 deletions
|
@ -291,8 +291,6 @@ static int sock_delete_remote(patty_ax25_server *server,
|
||||||
|
|
||||||
static int sock_shutdown(patty_ax25_server *server,
|
static int sock_shutdown(patty_ax25_server *server,
|
||||||
patty_ax25_sock *sock) {
|
patty_ax25_sock *sock) {
|
||||||
int ret;
|
|
||||||
|
|
||||||
fd_clear(server, sock->fd);
|
fd_clear(server, sock->fd);
|
||||||
|
|
||||||
if (sock->type != PATTY_AX25_SOCK_STREAM) {
|
if (sock->type != PATTY_AX25_SOCK_STREAM) {
|
||||||
|
@ -303,14 +301,12 @@ static int sock_shutdown(patty_ax25_server *server,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = patty_ax25_sock_send_disc(sock, PATTY_AX25_FRAME_POLL);
|
|
||||||
|
|
||||||
sock->state = PATTY_AX25_SOCK_PENDING_DISCONNECT;
|
sock->state = PATTY_AX25_SOCK_PENDING_DISCONNECT;
|
||||||
sock->retries = sock->n_retry;
|
sock->retries = sock->n_retry;
|
||||||
|
|
||||||
patty_timer_start(&sock->timer_t1);
|
patty_timer_start(&sock->timer_t1);
|
||||||
|
|
||||||
return ret;
|
return patty_ax25_sock_send_disc(sock, PATTY_AX25_FRAME_POLL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sock_save(patty_ax25_server *server,
|
static int sock_save(patty_ax25_server *server,
|
||||||
|
|
Loading…
Add table
Reference in a new issue