Skip to content

Commit

Permalink
[RSDK-3266] Fix gamepad controller initialization to use background c…
Browse files Browse the repository at this point in the history
…ontext (viamrobotics#2436)
  • Loading branch information
natalieh235 authored May 31, 2023
1 parent 40a9eef commit 7c39981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/input/gamepad/gamepad_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ func init() {
})
}

func createController(ctx context.Context, name resource.Name, logger golog.Logger, devFile string, reconnect bool) input.Controller {
ctxWithCancel, cancel := context.WithCancel(ctx)
func createController(_ context.Context, name resource.Name, logger golog.Logger, devFile string, reconnect bool) input.Controller {
ctxWithCancel, cancel := context.WithCancel(context.Background())
g := gamepad{
Named: name.AsNamed(),
logger: logger,
Expand Down

0 comments on commit 7c39981

Please sign in to comment.