Add the missing await
This commit is contained in:
parent
4a838033ff
commit
b0c919aab7
@ -241,7 +241,7 @@ class Pubsub:
|
||||
await self.continuously_read_stream(stream)
|
||||
except (StreamEOF, StreamReset) as error:
|
||||
logger.debug("fail to read from stream, error=%s", error)
|
||||
stream.reset()
|
||||
await stream.reset()
|
||||
# TODO: what to do when the stream is terminated?
|
||||
# disconnect the peer?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user