pigpio
pigpio copied to clipboard
Fix python pigpio socket read loop when connection is closed
This change check the result of socket.recv and break the loop if connection is closed (recv returns 0)
Related issue: https://github.com/joan2937/pigpio/issues/563