hypebeast / go-osc

Open Sound Control (OSC) library for Golang. Implemented in pure Go.
MIT License
200 stars 46 forks source link

Allow nil type tags on server, clean up net connection on failure #35

Closed DianeLooney closed 4 years ago

DianeLooney commented 4 years ago

This PR incorporates two changes, handling nil type tags on an osc server, and closing the udp connection when ListenAndServe crashes.

The first change fixes a crash I encountered. The second fixes the issue I discovered when I attempted to adjust my code to re-open the port after such a crash and was unable to do so, as the port was already in use.

hypebeast commented 4 years ago

Hey Diana. Thanks a lot for the PR. The PR looks good so far. I will merge it.