ui/app: (linux) don't deadlock when failing to create window

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-25 17:27:10 -07:00
parent a2e485b56d
commit a0d1d93ccf
+1 -1
View File
@@ -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 {