mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-24 14:12:02 +00:00
...
This commit is contained in:
parent
c94844b220
commit
13b574486c
1 changed files with 3 additions and 1 deletions
|
|
@ -17,7 +17,9 @@ type Options struct {
|
|||
func run_server(opts *Options) (err error) {
|
||||
portal := NewPortal(opts)
|
||||
ctx := context.Background()
|
||||
err = portal.Start(ctx)
|
||||
if err = portal.Start(ctx); err != nil {
|
||||
return
|
||||
}
|
||||
// Run until explicitly stopped.
|
||||
<-ctx.Done()
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue