From 41afc099dc6ba4ababafc2f553d81b06b4992a09 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 27 Jun 2024 03:39:52 +0100 Subject: [PATCH] sleep after, set to 50ms --- src/vmr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmr.c b/src/vmr.c index d25131a..1342ad5 100644 --- a/src/vmr.c +++ b/src/vmr.c @@ -35,9 +35,9 @@ long login(T_VBVMR_INTERFACE *iVMR, int kind) endwait = time(NULL) + timeout; do { - Sleep(100); if ((rep = version(iVMR, &v)) == 0) break; + Sleep(50); } while (time(NULL) < endwait); } if (rep == 0)