Skip to content

Commit

Permalink
check fd_close fhs
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Aug 15, 2023
1 parent 8669d40 commit 9dbc05c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,9 @@ int fd_listen(struct re_fhs **fhsp, re_sock_t fd, int flags, fd_h fh,
*/
void fd_close(struct re_fhs *fhs)
{
if (!fhs)
return;

(void)fd_listen(&fhs, fhs->fd, 0, NULL, NULL);
}

Expand Down

0 comments on commit 9dbc05c

Please sign in to comment.