mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/thread: bug fix: do not close 'terminate' channel
The `terminate` channel is resued on mobiles (see (*UserInterface).Update in internal/uidriver/mobile). The channel must not be closed. Closes #1932
This commit is contained in:
parent
0d90c04c8a
commit
c67e4385de
@ -61,7 +61,7 @@ func (t *OSThread) Loop() {
|
||||
|
||||
// Stop stops the thread loop.
|
||||
func (t *OSThread) Stop() {
|
||||
close(t.terminate)
|
||||
t.terminate <- struct{}{}
|
||||
}
|
||||
|
||||
// Call calls f on the thread.
|
||||
|
Loading…
Reference in New Issue
Block a user