summaryrefslogtreecommitdiff
path: root/distbuild/__init__.py
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-06-05 11:30:18 +0100
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-06-10 17:53:45 +0100
commit13edeabd929b094ab2ec7288840e62d31d9feb67 (patch)
tree4a0b2f926fd9c229c99528ff451b676e211f0e9a /distbuild/__init__.py
parent60776a0d1956b50e75c9f361218fef955c265d9c (diff)
downloadmorph-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 'distbuild/__init__.py')
0 files changed, 0 insertions, 0 deletions