1
0
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:
slush 2012-11-13 16:07:53 +00:00
parent 541ebe37f5
commit 437d88db1b

View File

@ -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: