Skip to content

Commit 647506e

Browse files
committed
Wait for the context to end in a goroutine
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
1 parent e3f2161 commit 647506e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/oauth/callback_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (s *CallbackServer) Start(ctx context.Context) error {
4545
if err != nil {
4646
return fmt.Errorf("failed to listen on port %d: %w", s.port, err)
4747
}
48-
func() {
48+
go func() {
4949
<-ctx.Done()
5050
listener.Close()
5151
}()

0 commit comments

Comments
 (0)