Fix NetworkTest

This commit is contained in:
Stephen Seo 2019-03-04 17:56:40 +09:00
parent ec9c3399bf
commit aa094224bc

View file

@ -71,7 +71,7 @@ int main(int argc, char** argv)
UDPC_set_callback_received(ctx, recCallback, NULL);
while(UDPC_get_error(ctx) == UDPC_SUCCESS)
{
if(isClient)
if(isClient && isConnected == 0)
{
UDPC_client_initiate_connection(ctx, targetAddress, targetPort);
}