fix thread count

This commit is contained in:
2023-08-12 01:01:47 +01:00
parent 501bbff1a2
commit 140ce3d2a8

View File

@@ -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} return nil, ArErr{TYPE: "TypeError", message: "Invalid number of arguments, expected 0, got " + fmt.Sprint(len(args)), EXISTS: true}
} }
hasrun = true hasrun = true
go func() {
threadCount++ threadCount++
go func() {
resp, err = runCall(call{Callable: tocall, Args: []any{}}, nil, 0) resp, err = runCall(call{Callable: tocall, Args: []any{}}, nil, 0)
wg <- true wg <- true
threadCount-- threadCount--