This commit is contained in:
Kovid Goyal
2025-05-18 20:09:52 +05:30
parent c94844b220
commit 13b574486c

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