Compare commits

..

2 Commits

Author SHA1 Message Date
sammyette 7c815022a9
chore: merge from dev 2021-09-18 22:49:33 -04:00
sammyette 2ef2998279
fix: make timeout() blocking
may or may not be temporary
2021-09-18 22:48:28 -04:00
1 changed files with 2 additions and 1 deletions

3
lua.go
View File

@ -152,7 +152,8 @@ func hshgoroutine(gofunc func()) {
func hshtimeout(timeoutfunc func(), ms int) {
timeout := time.Duration(ms) * time.Millisecond
time.AfterFunc(timeout, timeoutfunc)
time.Sleep(timeout)
timeoutfunc()
}
func hshinterval(L *lua.LState) int {