1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

fixup: remove transmission loop wait spawn

This commit is contained in:
M1nd3r 2024-08-26 14:22:41 +02:00
parent 34940bc5f9
commit a272de9453

View File

@ -31,12 +31,12 @@ class TransmissionLoop:
await write_payload_to_wire_and_add_checksum(
self.channel.iface, self.header, self.transport_payload
)
self.wait_task = loop.spawn(self._wait(i))
try:
await self.wait_task
except loop.TaskClosed:
self.wait_task = None
break
# self.wait_task = loop.spawn(self._wait(i))
# try:
# await self.wait_task
# except loop.TaskClosed:
# self.wait_task = None
# break
def stop_immediately(self):
if self.wait_task is not None: