try: self._ssd.flush()
except Exception as e: asyncfailure(e)
else:
- asyncfailure(reason)
+ self._asyncfailure(reason)
+
+ def _asyncfailure(self, reason):
+ global outstanding
+ outstanding += 1
+ req_err(reason)
def req_ok(req, resp):
rc = ResponseConsumer(req)