mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-11 15:40:54 +00:00
Merge pull request #63 from zixuanzh/chat-hotfix
Dialer should not read until user says so.
This commit is contained in:
@ -20,7 +20,10 @@ class MuxedConn(IMuxedConn):
|
|||||||
self.streams = {}
|
self.streams = {}
|
||||||
self.stream_queue = asyncio.Queue()
|
self.stream_queue = asyncio.Queue()
|
||||||
|
|
||||||
asyncio.ensure_future(self.handle_incoming())
|
# The initiator need not read upon construction time.
|
||||||
|
# It should read when the user decides that it wants to read from the constructed stream.
|
||||||
|
if not initiator:
|
||||||
|
asyncio.ensure_future(self.handle_incoming())
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user