osthread: I'm pretty sure this should fix it
This commit is contained in:
parent
41b74c5b14
commit
573f042f39
1 changed files with 2 additions and 2 deletions
|
|
@ -27,13 +27,13 @@ func Start(entrypoint func()) {
|
|||
done := make(chan any)
|
||||
|
||||
// Immediately queue entrypoint
|
||||
Go(func() {
|
||||
go func() {
|
||||
defer func() {
|
||||
done <- nil
|
||||
}()
|
||||
|
||||
entrypoint()
|
||||
})
|
||||
}()
|
||||
|
||||
// Call functions in our queue until entrypoint returns.
|
||||
// These functions are called on the main operating system thread.
|
||||
|
|
|
|||
Loading…
Reference in a new issue