Added delay for connect abort

The connection abort must be called after freerdp_connect.
Ensure that this function is already running by waiting
a second.
This commit is contained in:
Armin Novak 2017-09-26 12:03:57 +02:00
parent ef9444bd35
commit 9f26f73709

View File

@ -136,6 +136,7 @@ static int testAbort(int port)
}
WaitForSingleObject(s_sync, INFINITE);
Sleep(1000); /* Wait until freerdp_connect has been called */
freerdp_abort_connect(instance);
status = WaitForSingleObject(instance->context->abortEvent, 0);