pcu_sock.c: Call osmo_fd_unregister() before closing and changing bfd->fd

Change-Id: I692bbb5b7c06b5528a36c09a99a7580cbafa3cc0
This commit is contained in:
Pau Espin 2023-03-14 11:29:42 +01:00
parent f162fa9009
commit 33956215a7
1 changed files with 1 additions and 1 deletions

View File

@ -999,9 +999,9 @@ static void pcu_sock_close(struct pcu_sock_state *state)
bts->pcu_version[0] = '\0';
osmo_fd_unregister(bfd);
close(bfd->fd);
bfd->fd = -1;
osmo_fd_unregister(bfd);
/* patch SI3 to remove GPRS indicator */
regenerate_si3_restoctets(bts);