joan2937 / pigpio

pigpio is a C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO).
The Unlicense
1.45k stars 407 forks source link

Fix python pigpio socket read loop when connection is closed #564

Open cescobaz opened 1 year ago

cescobaz commented 1 year ago

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