This commit is contained in:
Kovid Goyal 2025-05-18 20:09:52 +05:30
parent c94844b220
commit 13b574486c
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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