mainthread: Disable panic temporarily

Fixes #809
This commit is contained in:
Hajime Hoshi 2019-02-08 20:11:46 -10:00
parent 64db8f9c7a
commit 87b4b8b1b4

View File

@ -47,7 +47,8 @@ func Loop(ch <-chan error) error {
// Run calls f on the main thread.
func Run(f func() error) error {
if atomic.LoadInt32(&started) == 0 {
panic("mainthread: the mainthread loop is not started yet")
// TODO: This can reach from other goroutine before Loop is called (#809).
// panic("mainthread: the mainthread loop is not started yet")
}
ch := make(chan struct{})