Fix new connections not being created

This commit is contained in:
Stephen Seo 2019-03-04 19:17:55 +09:00
parent f8950fa08e
commit d35f081585

View file

@ -10,7 +10,7 @@ UDPC_Context* UDPC_init(uint16_t listenPort, int isClient)
{ {
UDPC_Context *context = malloc(sizeof(UDPC_Context)); UDPC_Context *context = malloc(sizeof(UDPC_Context));
context->error = UDPC_SUCCESS; context->error = UDPC_SUCCESS;
context->flags = 0xC; context->flags = 0x4C;
if(isClient != 0) context->flags |= 0x2; if(isClient != 0) context->flags |= 0x2;
context->threadFlags = 0; context->threadFlags = 0;
context->conMap = UDPC_HashMap_init(13, sizeof(UDPC_INTERNAL_ConnectionData)); context->conMap = UDPC_HashMap_init(13, sizeof(UDPC_INTERNAL_ConnectionData));