chiark / gitweb /
wip, towards target
[hippotat.git] / client
diff --git a/client b/client
index 467afd60885ce5c50e4ccb5aa751af4307b3834a..e4e5eae7a01df3e180be74d170b6404f37a78f6f 100755 (executable)
--- a/client
+++ b/client
@@ -80,7 +80,12 @@ class ResponseConsumer(twisted.internet.protocol.Protocol):
       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)