Add the missing await

This commit is contained in:
mhchia 2019-09-24 13:34:26 +08:00
parent 4a838033ff
commit b0c919aab7
No known key found for this signature in database
GPG Key ID: 389EFBEA1362589A

View File

@ -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?