Skip to content

Commit 63c11cf

Browse files
committed
fix bad merge of DoAndWait PR
1 parent 8457212 commit 63c11cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/driver/glfw/loop.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ func (d *gLDriver) runSingleFrame() (exit, animationsDone bool) {
220220
select {
221221
case f := <-funcQueue:
222222
f.f()
223-
f.done <- struct{}{}
223+
if f.done != nil {
224+
f.done <- struct{}{}
225+
}
224226
default:
225227
funcsDone = true
226228
}

0 commit comments

Comments
 (0)