1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 13:38:12 +00:00

src/trezor/loop: cleanup signal in case of task failure

This commit is contained in:
Jan Pochyla 2018-03-20 16:22:43 +01:00
parent 886888b775
commit f9c51af32f

View File

@ -201,6 +201,13 @@ class signal(Syscall):
self.task = None
self.value = _NO_VALUE
def __iter__(self):
try:
return (yield self)
except:
self.task = None
raise
class wait(Syscall):
'''