aboutsummaryrefslogtreecommitdiffstats
path: root/backend/magiback
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2023-07-03 12:46:15 +0200
committerPapoteur <papoteur@mageia.org>2023-07-03 12:46:15 +0200
commita5c8f17a12e2c533ec2d5b22548aa2d8894525aa (patch)
tree4706e220cc1d519db1991373d6bcada355cc5278 /backend/magiback
parent617d5e73b868c798d1a3c11acb9555336458a8cb (diff)
downloadisodumper-a5c8f17a12e2c533ec2d5b22548aa2d8894525aa.tar
isodumper-a5c8f17a12e2c533ec2d5b22548aa2d8894525aa.tar.gz
isodumper-a5c8f17a12e2c533ec2d5b22548aa2d8894525aa.tar.bz2
isodumper-a5c8f17a12e2c533ec2d5b22548aa2d8894525aa.tar.xz
isodumper-a5c8f17a12e2c533ec2d5b22548aa2d8894525aa.zip
Close magiback when closing isodumper
Keep the authorization one hour Add the -d option for debug
Diffstat (limited to 'backend/magiback')
-rwxr-xr-xbackend/magiback8
1 files changed, 7 insertions, 1 deletions
diff --git a/backend/magiback b/backend/magiback
index 46cf43c..e16e1dc 100755
--- a/backend/magiback
+++ b/backend/magiback
@@ -12,7 +12,7 @@ DEAMON_ORG = 'org.mageia.Magiback'
DEAMON_INTERFACE = DEAMON_ORG
ISODUMPER_INTERFACE = DEAMON_ORG + ".Isodumper"
# Keep the authorization during KEEPER (in seconds)
-KEEPER = 600
+KEEPER = 3600
auth = False
last_auth = 0
@@ -54,6 +54,8 @@ class Isodumper(raw_write.Dumper):
<arg type='b' name='success' direction='out'/>
<arg type='s' name='message' direction='out'/>
</method>
+ <method name='close'>
+ </method>
<property name="done" type="b" access="read"/>
<property name="progress" type="i" access="read"/>
<property name="message" type="s" access="read"/>
@@ -132,6 +134,10 @@ class Isodumper(raw_write.Dumper):
self.finished.clear()
return self.return_state, self.return_message
+ def close(self):
+ logging.info("Closing")
+ self.loop.quit()
+
@property
def progress(self):
return self._progress