mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 23:55:39 +00:00
ui/app: (linux) don't deadlock when failing to create window
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -207,7 +207,7 @@ func (w *Window) run(opts *WindowOptions) {
|
||||
defer close(w.in)
|
||||
defer close(w.out)
|
||||
if err := createWindow(w, opts); err != nil {
|
||||
w.destroy(err)
|
||||
w.out <- DestroyEvent{err}
|
||||
return
|
||||
}
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user