Fixed double initialisation
- Journal and copy queue were started 2 times when new files were added throught DBus
This commit is contained in:
parent
3917269a28
commit
8e2a58fa2f
7
gcp
7
gcp
|
@ -154,6 +154,7 @@ class GCP():
|
||||||
debug (_("gcp launched"))
|
debug (_("gcp launched"))
|
||||||
self._main_instance = True
|
self._main_instance = True
|
||||||
self.buffer_size = const_BUFF_SIZE
|
self.buffer_size = const_BUFF_SIZE
|
||||||
|
self.__launched = False #True when journal is initialised and copy is started
|
||||||
else:
|
else:
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
|
@ -474,8 +475,10 @@ class GCP():
|
||||||
return (False, _error_msg)
|
return (False, _error_msg)
|
||||||
debug(_("adding args to gcp: %s") % str(args).decode('utf-8','replace'))
|
debug(_("adding args to gcp: %s") % str(args).decode('utf-8','replace'))
|
||||||
self.__checkArgs(options, source_path, args)
|
self.__checkArgs(options, source_path, args)
|
||||||
self.journal = Journal()
|
if not self.__launched:
|
||||||
gobject.idle_add(self.__copyNextFile)
|
self.journal = Journal()
|
||||||
|
gobject.idle_add(self.__copyNextFile)
|
||||||
|
self.__launched = True
|
||||||
return (True,'')
|
return (True,'')
|
||||||
|
|
||||||
def go(self):
|
def go(self):
|
||||||
|
|
Loading…
Reference in New Issue