python: Fixed client-abortion error raising.
[ashd.git] / python / ashd-wsgi
index 042bf3f..bfc4b42 100755 (executable)
@@ -134,8 +134,8 @@ def dowsgi(req):
     def write(data):
         if not data:
             return
-        flushreq()
         try:
+            flushreq()
             req.sk.write(data)
             req.sk.flush()
         except IOError: