Fix NetworkTest
This commit is contained in:
parent
ec9c3399bf
commit
aa094224bc
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ int main(int argc, char** argv)
|
||||||
UDPC_set_callback_received(ctx, recCallback, NULL);
|
UDPC_set_callback_received(ctx, recCallback, NULL);
|
||||||
while(UDPC_get_error(ctx) == UDPC_SUCCESS)
|
while(UDPC_get_error(ctx) == UDPC_SUCCESS)
|
||||||
{
|
{
|
||||||
if(isClient)
|
if(isClient && isConnected == 0)
|
||||||
{
|
{
|
||||||
UDPC_client_initiate_connection(ctx, targetAddress, targetPort);
|
UDPC_client_initiate_connection(ctx, targetAddress, targetPort);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue