python: Fixed client-abortion error raising.
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 12 Apr 2011 07:21:30 +0000 (09:21 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 12 Apr 2011 07:21:30 +0000 (09:21 +0200)
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: