From 140ce3d2a86bb3f7d79fd733959c83a72c5937ec Mon Sep 17 00:00:00 2001 From: Ugric Date: Sat, 12 Aug 2023 01:01:47 +0100 Subject: [PATCH] fix thread count --- src/thread.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread.go b/src/thread.go index 93f4437..804ffb1 100644 --- a/src/thread.go +++ b/src/thread.go @@ -38,8 +38,8 @@ func ArThread(args ...any) (any, ArErr) { return nil, ArErr{TYPE: "TypeError", message: "Invalid number of arguments, expected 0, got " + fmt.Sprint(len(args)), EXISTS: true} } hasrun = true + threadCount++ go func() { - threadCount++ resp, err = runCall(call{Callable: tocall, Args: []any{}}, nil, 0) wg <- true threadCount--