mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 19:18:56 +00:00
Drop pipe only when acting as a device
This commit is contained in:
parent
541ebe37f5
commit
437d88db1b
@ -34,8 +34,9 @@ class PipeTransport(Transport):
|
||||
def _close(self):
|
||||
self.read_f.close()
|
||||
self.write_f.close()
|
||||
os.unlink(self.filename_read)
|
||||
os.unlink(self.filename_write)
|
||||
if self.is_device:
|
||||
os.unlink(self.filename_read)
|
||||
os.unlink(self.filename_write)
|
||||
|
||||
def _write(self, msg):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user