Commit 09c39002 authored by Ziirish's avatar Ziirish

don't lock the backend while performing a restore

parent 81aac516
......@@ -814,16 +814,16 @@ class Burp(Burp2):
"""
return trio.run(self._async_get_client_labels, client)
async def _async_restore_files(self, name=None, backup=None, files=None, strip=None,
archive='zip', password=None, agent=None):
return await trio.run_sync_in_worker_thread(Burp2.restore_files, self, name, backup, files, strip, archive, password, agent)
@usetriorun
def restore_files(self, name=None, backup=None, files=None, strip=None,
archive='zip', password=None, agent=None):
return trio.run(self._async_restore_files, name, backup, files, strip, archive, password, agent)
# Same as in Burp1 backend
# def restore_files(
# self,
# name=None,
# backup=None,
# files=None,
# strip=None,
# archive='zip',
# password=None,
# agent=None):
# def read_conf_cli(self, agent=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment