Skip to content

Commit fc3f109

Browse files
committed
fix bad merge of DoAndWait PR
1 parent 266175a commit fc3f109

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/driver/glfw/loop.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,14 @@ func (d *gLDriver) runSingleFrame() (exit, animationsDone bool) {
170170
select {
171171
case f := <-funcQueue.Out():
172172
f.f()
173-
f.done <- struct{}{}
173+
if f.done != nil {
174+
f.done <- struct{}{}
175+
}
174176
default:
175177
funcsDone = true
176178
}
177179
}
178180

179-
180181
// apply settings change if any
181182
settingsMutex.Lock()
182183
set := settingsToApply

0 commit comments

Comments
 (0)