junzis / pyModeS

Python decoder for Mode S and ADS-B signals
GNU General Public License v3.0
546 stars 153 forks source link

Fix invalid socket disconnect call in TcpClient #111

Closed maranov closed 3 years ago

maranov commented 3 years ago

Hi, a small fix. The disconnect call in TcpClient can't be called without parameters. A better option is to completely close the socket instead IMHO. The testing main function now also stops the Client explicitly, so the stop function gets "tested" each time the main is executed.

junzis commented 3 years ago

Thanks, @maranov. nice fix!