Permalink
Browse files

Merge pull request #521 from yoinc/master

Restore context for all read methods
  • Loading branch information...
2 parents 5cd350a + 4c19333 commit 2321542ca267a34a08fe62a455e0065640ba0eec @bdarnell bdarnell committed May 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tornado/iostream.py
View
@@ -366,7 +366,7 @@ def _handle_read(self):
def _set_read_callback(self, callback):
assert not self._read_callback, "Already reading"
- self._read_callback = callback
+ self._read_callback = stack_context.wrap(callback)
def _try_inline_read(self):
"""Attempt to complete the current read operation from buffered data.

0 comments on commit 2321542

Please sign in to comment.