joopert / nad_receiver

python api to connect to NAD receivers
MIT License
12 stars 18 forks source link

NADReceiverTCP: use context handler to close socket #39

Closed gladhorn closed 4 years ago

gladhorn commented 4 years ago

This makes sure that the socket is closed in all code paths and removes a bit of the special case handling making the code slightly simpler.

gladhorn commented 4 years ago

I wonder if anyone is able to test this. @robhuls maybe?