Fix recursive BrokenPipeException on disconnect
authorJeremy Stanley <fungi@yuggoth.org>
Tue, 23 Feb 2016 22:32:27 +0000 (22:32 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Tue, 23 Feb 2016 22:32:27 +0000 (22:32 +0000)
commit05edf88abb0e14dc42275977daff9fac197b387e
treeb84ea4cef802936e3f0984f69dbc7c54b07157c6
parent96e7bf74c86fc4a66356957e4fd4f4e0fc987b5e
Fix recursive BrokenPipeException on disconnect

When an admin user has a broken pipe, attempting to log
BrokenPipeException errors to their socket raises another until the
max recursion depth is hit. Set the current user's state to
disconnecting before logging the error instead of after, so as to
avoid this loop.
lib/mudpy/misc.py