Permalink
Browse files

Don't double-finish Web requests.

  • Loading branch information...
1 parent 8551b88 commit b800cee4b485258f937116fba93d425bf64846ad Eric Naeseth committed Jan 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 swirl.py
View
@@ -66,7 +66,7 @@ def callback_proxy(*args):
work[0] = gen.next()
io_loop.add_callback(execute_work)
except StopIteration:
- if web_handler:
+ if web_handler and not web_handler._finished:
web_handler.finish()
except Exception, e:
if web_handler:

0 comments on commit b800cee

Please sign in to comment.