diff --git a/plugins/win-capture/inject-helper/inject-helper.c b/plugins/win-capture/inject-helper/inject-helper.c index a52d4e4ea..0a04cba03 100644 --- a/plugins/win-capture/inject-helper/inject-helper.c +++ b/plugins/win-capture/inject-helper/inject-helper.c @@ -61,12 +61,10 @@ static int inject_library_safe(DWORD thread_id, const char *dll) return -5; } - for (i = 0; i < 20; i++) + for (i = 0; i < 8; i++) { + Sleep(500); PostThreadMessage(thread_id, WM_USER + 432, 0, (LPARAM)hook); - Sleep(1000); - for (i = 0; i < 20; i++) - PostThreadMessage(thread_id, WM_USER + 432, 0, (LPARAM)hook); - Sleep(1000); + } return 0; }