fix: ignore context canceled error on server (#4128)

This commit is contained in:
Colin Adler
2022-09-19 23:56:51 -05:00
committed by GitHub
parent 67230babc0
commit 8d7954b015
3 changed files with 12 additions and 9 deletions
+3
View File
@@ -690,6 +690,9 @@ func Server(newAPI func(context.Context, *coderd.Options) (*coderd.API, error))
// Trigger context cancellation for any remaining services.
cancel()
if xerrors.Is(exitErr, context.Canceled) {
return nil
}
return exitErr
},
}