forked from acouzens/open5gs
rollback privous commit
This commit is contained in:
parent
34270825a7
commit
c2d962d4d1
|
@ -125,13 +125,13 @@ status_t s1ap_close()
|
||||||
|
|
||||||
accept_thread_should_stop = 1;
|
accept_thread_should_stop = 1;
|
||||||
usrsctp_close(psock);
|
usrsctp_close(psock);
|
||||||
|
#if 0 /* FIXME : how to release usrsctp_accept() blocking */
|
||||||
while(usrsctp_finish() != 0)
|
while(usrsctp_finish() != 0)
|
||||||
{
|
{
|
||||||
d_error("try to finsih SCTP\n");
|
d_error("try to finsih SCTP\n");
|
||||||
core_sleep(time_from_msec(1000));
|
core_sleep(time_from_msec(1000));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0 /* FIXME : how to release usrsctp_accept() blocking */
|
|
||||||
thread_delete(accept_thread);
|
thread_delete(accept_thread);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -204,11 +204,7 @@ static int s1ap_usrsctp_recv_cb(struct socket *sock,
|
||||||
union sctp_sockstore addr, void *data, size_t datalen,
|
union sctp_sockstore addr, void *data, size_t datalen,
|
||||||
struct sctp_rcvinfo rcv, int flags, void *ulp_info)
|
struct sctp_rcvinfo rcv, int flags, void *ulp_info)
|
||||||
{
|
{
|
||||||
if (data == NULL)
|
if (data)
|
||||||
{
|
|
||||||
usrsctp_close(sock);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if (flags & MSG_NOTIFICATION)
|
if (flags & MSG_NOTIFICATION)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue