Skip to content

Commit

Permalink
When the socket is writable
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Nov 1, 2016
1 parent 34d5533 commit 09b7245
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modules/rlm_sigtran/libosmo-m3ua/sctp_m3ua_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,7 @@ static void m3ua_start(void *data)
goto error;
}

if (m3ua_setnonblocking(sctp) < 0) {
goto error;
}
if (m3ua_setnonblocking(sctp) < 0) goto error;

LOGP(DINP, LOGL_NOTICE, "Initialising SCTP association\n");

Expand All @@ -407,7 +405,7 @@ static void m3ua_start(void *data)

link->connect.fd = sctp;
link->connect.data = link;
link->connect.when = BSC_FD_READ | BSC_FD_EXCEPT;
link->connect.when = BSC_FD_WRITE | BSC_FD_EXCEPT;
link->connect.cb = m3ua_sctp_assoc_complete;

if (osmo_fd_register(&link->connect) != 0) {
Expand Down

0 comments on commit 09b7245

Please sign in to comment.