diff --git a/iso15118/evcc/comm_session_handler.py b/iso15118/evcc/comm_session_handler.py index 0ae655d1..c1d7bc23 100644 --- a/iso15118/evcc/comm_session_handler.py +++ b/iso15118/evcc/comm_session_handler.py @@ -550,7 +550,9 @@ async def get_from_rcv_queue(self, queue: asyncio.Queue): elif isinstance(notification, StopNotification): await cancel_task(self.comm_session[1]) del self.comm_session - if not notification.successful: + if notification.successful: + break + else: try: await self.restart_sdp(True) except SDPFailedError as exc: