From 14a59e5c66da849cf4e07fd7803eb17b6d4918ec Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Thu, 22 Jun 2023 14:31:41 +0200 Subject: [PATCH] Fix loop --- start.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index 6518772..208c115 100644 --- a/start.sh +++ b/start.sh @@ -120,9 +120,10 @@ function main() { console_log "[$host] Failed to connect to VPN: [$vpn]. Skipping to the next VPN." "error" fi done + return 0 } while true; do - main - : + main & + wait $! done \ No newline at end of file