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.
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 :)