We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae7ce87 commit d079a50Copy full SHA for d079a50
main.c
@@ -94,9 +94,9 @@ struct state {
94
} _state;
95
96
static void state_add_socket_fd(struct state *state, int socket_fd) {
97
- dispatch_semaphore_wait(state->sem, DISPATCH_TIME_FOREVER);
98
struct conn *conn = calloc(1, sizeof(*conn));
99
conn->socket_fd = socket_fd;
+ dispatch_semaphore_wait(state->sem, DISPATCH_TIME_FOREVER);
100
if (state->conns == NULL) {
101
state->conns = conn;
102
} else {
0 commit comments