blocking/transit.py: hush a transient failure

Not entirely sure what's going on here, but this is probably safe.
This commit is contained in:
Brian Warner 2015-10-03 16:42:26 -07:00
parent ccea1a7d3c
commit bc3b0f03b9

View File

@ -387,7 +387,8 @@ class Common:
def _connector_failed(self, hint):
debug("- failed connector %s" % hint)
self._active_connectors.remove(hint)
# XXX this was .remove, and occasionally got KeyError
self._active_connectors.discard(hint)
if not self._active_connectors:
self._start_relay_connectors()