Skip to content

Commit

Permalink
Locking: Remove locking initialization from coap_new_context()
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdeep1 committed Jul 18, 2024
1 parent d87af11 commit e692ace
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/coap_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,6 @@ coap_new_context(const coap_address_t *listen_addr) {
}
memset(c, 0, sizeof(coap_context_t));

coap_lock_init();
coap_lock_lock(c, coap_free_type(COAP_CONTEXT, c); return NULL);
#ifdef COAP_EPOLL_SUPPORT
c->epfd = epoll_create1(0);
Expand Down

0 comments on commit e692ace

Please sign in to comment.