shenghaoyang / pylcddc

Python LCDd client (LCDproc server client)
MIT License
9 stars 4 forks source link

iothread: fix spinning in loop #6

Closed shenghaoyang closed 3 years ago

shenghaoyang commented 3 years ago

LCDd socket should only be select()'d for EVENT_WRITE only when we want to send data.

Registering it for EVENT_WRITE otherwise would likely cause select() to always return immediately since the TCP socket would most likely be able to accept data.

May close #5.