File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,10 @@ async def complete_pending(self) -> None:
216
216
# TODO: respect deadline
217
217
await self .receive_message (None , True )
218
218
else :
219
- network_layer .receive_data (self , self .pending_bytes , deadline ) # type:ignore[call-arg]
219
+ try :
220
+ network_layer .receive_data (self , self .pending_bytes , deadline ) # type:ignore[call-arg]
221
+ except BaseException as error :
222
+ await self ._raise_connection_failure (error )
220
223
self .pending_response = False
221
224
self .pending_bytes = 0
222
225
self .pending_deadline = 0.0
Original file line number Diff line number Diff line change @@ -216,7 +216,10 @@ def complete_pending(self) -> None:
216
216
# TODO: respect deadline
217
217
self .receive_message (None , True )
218
218
else :
219
- network_layer .receive_data (self , self .pending_bytes , deadline ) # type:ignore[call-arg]
219
+ try :
220
+ network_layer .receive_data (self , self .pending_bytes , deadline ) # type:ignore[call-arg]
221
+ except BaseException as error :
222
+ self ._raise_connection_failure (error )
220
223
self .pending_response = False
221
224
self .pending_bytes = 0
222
225
self .pending_deadline = 0.0
You can’t perform that action at this time.
0 commit comments