Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isListening race conditions #23

Open
sammysmallman opened this issue Jul 12, 2023 · 0 comments
Open

isListening race conditions #23

sammysmallman opened this issue Jul 12, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@sammysmallman
Copy link
Owner

When changing the port of an OSCUdpServer and immediately calling startListening() the server will not be in a listening state. This is because isListening is only set to false when the socket receives udpSocketDidClose(_ sock: GCDAsyncUdpSocket, withError error: Error?) and the startListening() method returns early if isListening is true.

  • This will be the same for OSCUdpPeer but with isRunning.
  • TCP objects are working a little differently but should require some investigation...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant