aboutsummaryrefslogtreecommitdiffstats
path: root/backend/magiback
diff options
context:
space:
mode:
Diffstat (limited to 'backend/magiback')
-rwxr-xr-xbackend/magiback5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/magiback b/backend/magiback
index e7541c3..2ad748b 100755
--- a/backend/magiback
+++ b/backend/magiback
@@ -94,9 +94,12 @@ class Isodumper(raw_write.Dumper):
def do_persistence(self, target, label, key):
self.finished.clear()
if self.writing_perm and self.writing_target == target :
- self._do_persistence(target, label, key)
+ self.thread = threading.Thread(target=self._do_persistence, args=(target, label, key))
+ self.thread.start()
+ logging.debug("Persistence thread started")
else:
self.return_message = "Persistence: Access denied"
+ self.finished.set()
self.writing_perm = False
self.writing_target = ""