GEN3: don't crash on overwritten msg in the receive buffer

This commit is contained in:
Stefan Allius
2024-09-03 17:22:34 +02:00
parent d2b88ab838
commit 215dcd98e6
4 changed files with 190 additions and 0 deletions

View File

@@ -147,6 +147,7 @@ class AsyncStream():
logger.error(
f"Exception for {self.addr}:\n"
f"{traceback.format_exc()}")
await asyncio.sleep(0) # be cooperative to other task
async def async_write(self, headline: str = 'Transmit to ') -> None:
"""Async write handler to transmit the send_buffer"""