Merge pull request #521 from yoinc/master

Restore context for all read methods
This commit is contained in:
bdarnell 2012-05-31 10:46:42 -07:00
commit 2321542ca2
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ class IOStream(object):
def _set_read_callback(self, callback): def _set_read_callback(self, callback):
assert not self._read_callback, "Already reading" assert not self._read_callback, "Already reading"
self._read_callback = callback self._read_callback = stack_context.wrap(callback)
def _try_inline_read(self): def _try_inline_read(self):
"""Attempt to complete the current read operation from buffered data. """Attempt to complete the current read operation from buffered data.