Skip to content

Commit e298c5a

Browse files
committed
Return context error
1 parent 1f02045 commit e298c5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/tbot/service_application_tunnel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (s *ApplicationTunnelService) buildLocalProxyConfig(ctx context.Context) (l
127127
select {
128128
case <-s.botIdentityReadyCh:
129129
case <-ctx.Done():
130-
return alpnproxy.LocalProxyConfig{}, nil
130+
return alpnproxy.LocalProxyConfig{}, ctx.Err()
131131
}
132132
}
133133
}

lib/tbot/service_database_tunnel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (s *DatabaseTunnelService) buildLocalProxyConfig(ctx context.Context) (lpCf
8787
select {
8888
case <-s.botIdentityReadyCh:
8989
case <-ctx.Done():
90-
return alpnproxy.LocalProxyConfig{}, nil
90+
return alpnproxy.LocalProxyConfig{}, ctx.Err()
9191
}
9292
}
9393
}

0 commit comments

Comments
 (0)