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