Skip to content

Commit

Permalink
device-agent: return proper context error when context has err
Browse files Browse the repository at this point in the history
  • Loading branch information
sechmann committed Apr 29, 2024
1 parent 86e854f commit 349a466
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/device-agent/states/connected/connected.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ func (c *Connected) login(ctx context.Context, apiserverClient pb.APIServerClien
}

func (c *Connected) defaultSyncConfigLoop(ctx context.Context) error {
if ctx.Err() != nil {
return ctx.Err()
}

session, err := c.rc.GetTenantSession()
if err != nil {
return err
Expand Down

0 comments on commit 349a466

Please sign in to comment.