fix: don't send log notification on transport error (#2257)
This commit is contained in:
parent
31a38b5078
commit
62eb08e5b2
1 changed files with 58 additions and 31 deletions
|
|
@ -334,7 +334,7 @@ class BaseSession(
|
|||
async with self._read_stream, self._write_stream:
|
||||
try:
|
||||
async for message in self._read_stream:
|
||||
if isinstance(message, Exception): # pragma: no cover
|
||||
if isinstance(message, Exception):
|
||||
await self._handle_incoming(message)
|
||||
elif isinstance(message.message, JSONRPCRequest):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue