mirror of
https://github.com/dakhnod/fzfs.git
synced 2025-05-15 14:50:09 -07:00
Merge pull request #7 from PlasmaPower/close-protobuf
Close the protobuf session on shutdown
This commit is contained in:
commit
5d756b54eb
@ -143,5 +143,9 @@ class FlipperAPI():
|
||||
with self.mutex:
|
||||
self._cmd_storage_write(path, data)
|
||||
|
||||
def close(self):
|
||||
with self.mutex:
|
||||
self.proto.cmd_flipper_stop_session()
|
||||
|
||||
class InvalidNameError(RuntimeError):
|
||||
pass
|
||||
|
@ -189,3 +189,6 @@ class FlipperZeroFileSystem(fuse.Operations, fuse.LoggingMixIn):
|
||||
cached = self.get_file_by_path(path)
|
||||
self.api.delete(path, True)
|
||||
cached['parent']['children'].remove(cached)
|
||||
|
||||
def close(self):
|
||||
self.api.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user