]> www.dolda2000.com Git - ashd.git/commitdiff
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 042bf3feb8f1437bf0c898b6f0a1cdcd1c7b5cc6..bfc4b420d7d12f7354a6f8e8370f6203e9aed173 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: