Skip to content

Close registration network on timeout - #69

Open
leesonthenet wants to merge 1 commit into
dhleong:mainfrom
leesonthenet:fix-registration-timeout-cleanup
Open

Close registration network on timeout#69
leesonthenet wants to merge 1 commit into
dhleong:mainfrom
leesonthenet:fix-registration-timeout-cleanup

Conversation

@leesonthenet

Copy link
Copy Markdown

This fixes a resource leak in the Remote Play registration discovery step.

If the console does not respond to the registration search within 30 seconds, the promise previously rejected with Timeout without closing the UDP discovery network.

This change closes the network before rejecting.

A regression test verifies that the discovery network’s close() method is called when the timeout fires.

Validation:

  • npm run check
  • 38 tests passing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant