Skip to content

Commit 61b3ea1

Browse files
authored
fix: context cancellation handling (#22824)
Signed-off-by: sivchari <shibuuuu5@gmail.com>
1 parent 80a194a commit 61b3ea1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/apiclient/apiclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ func (c *client) WatchApplicationWithRetry(ctx context.Context, appName string,
849849
}
850850

851851
func isCanceledContextErr(err error) bool {
852-
if err != nil && errors.Is(err, context.Canceled) {
852+
if err != nil && errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) {
853853
return true
854854
}
855855
if stat, ok := status.FromError(err); ok {

0 commit comments

Comments
 (0)