Merge branch 'master' of https://github.com/Agorise/c-ipfs
This commit is contained in:
commit
262216f6db
1 changed files with 1 additions and 0 deletions
|
@ -574,6 +574,7 @@ void *api_listen_thread (void *ptr)
|
|||
api_list.conns[i] = malloc (sizeof (struct s_conns));
|
||||
if (!api_list.conns[i]) {
|
||||
libp2p_logger_error("api", "Fail to allocate memory to accept connection.\n");
|
||||
pthread_mutex_unlock(&conns_lock);
|
||||
close (s);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue