SmartSpin2K / SmartSpin2kFlasher

Simple GUI tool to flash ESPs over USB
https://github.com/doudar/SmartSpin2k
MIT License
0 stars 1 forks source link

UDP Logger blocking after network change #13

Closed MarkusSchneider closed 2 years ago

MarkusSchneider commented 2 years ago

Hi Anthony, Problem was the blocking recv of the socket. If added a timeout. Now the socket returns after timeout expires and i can handle the Thread abort. The Thread is aborted by setting the running flag to false. In every loop cycle the thread check this. If running false the while loop ends, socket is closed and thread terminated.

Thx for testing :)