mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-24 05:12:02 +00:00
Drop pipe only when acting as a device
This commit is contained in:
parent
541ebe37f5
commit
437d88db1b
@ -34,6 +34,7 @@ class PipeTransport(Transport):
|
||||
def _close(self):
|
||||
self.read_f.close()
|
||||
self.write_f.close()
|
||||
if self.is_device:
|
||||
os.unlink(self.filename_read)
|
||||
os.unlink(self.filename_write)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user