diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-06-05 11:30:18 +0100 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-06-10 17:53:45 +0100 |
commit | 13edeabd929b094ab2ec7288840e62d31d9feb67 (patch) | |
tree | 4a0b2f926fd9c229c99528ff451b676e211f0e9a /morphlib/exts | |
parent | 60776a0d1956b50e75c9f361218fef955c265d9c (diff) | |
download | morph-13edeabd929b094ab2ec7288840e62d31d9feb67.tar.gz |
Fix: force select to wait on timeout
Currently the mainloop unintentionally busy-waits if
we can't connect to the controller.
We want the mainloop's select call to wait for the timeout
not for this socket's descriptors (which are always ready).
We could just call stop_reading() and stop_writing() but since
we won't be needing this socket again we may as well close the
entire event source, which calls stop_reading(), stop_writing()
and then closes the socket.
Diffstat (limited to 'morphlib/exts')
0 files changed, 0 insertions, 0 deletions