Skip to content

Commit 4e7b576

Browse files
authored
Merge pull request #339 from rumpl/fix-oauth
Wait for the context to end in a goroutine
2 parents e3f2161 + 647506e commit 4e7b576

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)