mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +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.in)
|
||||||
defer close(w.out)
|
defer close(w.out)
|
||||||
if err := createWindow(w, opts); err != nil {
|
if err := createWindow(w, opts); err != nil {
|
||||||
w.destroy(err)
|
w.out <- DestroyEvent{err}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for {
|
for {
|
||||||
|
|||||||
Reference in New Issue
Block a user