Merge pull request #521 from yoinc/master
Restore context for all read methods
This commit is contained in:
commit
2321542ca2
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue