From 9f26f737093537185e5b3c33c3f32b596b9759c2 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 26 Sep 2017 12:03:57 +0200 Subject: [PATCH] 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. --- libfreerdp/core/test/TestConnect.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libfreerdp/core/test/TestConnect.c b/libfreerdp/core/test/TestConnect.c index 27d81fea1..6393ab336 100644 --- a/libfreerdp/core/test/TestConnect.c +++ b/libfreerdp/core/test/TestConnect.c @@ -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);