Skip to content

Commit

Permalink
Correction of check being launched after stopping.
Browse files Browse the repository at this point in the history
  • Loading branch information
papoteur-mga committed Oct 28, 2014
1 parent 542f88c commit ee5d9b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion mageiaSync/mageiaSyncExt.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def stop(self):
try:
self.process.terminate()
self.lvM.emit("Process rsync stopped")
self.list=[]
except:
self.lvM.emit("Process rsync already stopped")
# Init progressbar and speed counter
Expand Down Expand Up @@ -186,9 +187,10 @@ def run(self):
if self.process.returncode != None:
break
self.lvM.emit("Ending with "+iso['nameWithPath'])
self.checkSignal.emit(iso['row'])
if self.stopped:
break
else:
self.checkSignal.emit(iso['row'])
self.endSignal.emit(0)
self.speedSignal.emit(0)
self.progressSignal.emit(0)
Expand Down
5 changes: 4 additions & 1 deletion mageiaSync/mageiasync.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ def checks(self,isoIndex):
# launches a thread for each iso
newThread=mageiaSyncExt.checkThread(self)
self.checkThreads.append(newThread)
self.checkThreads[-1].setup(self.destination,self.model.data(self.model.index(isoIndex,0)) ,self.model.data(self.model.index(isoIndex,1)),isoIndex)
self.checkThreads[-1].setup(self.destination,
self.model.data(self.model.index(isoIndex,0)) ,
self.model.data(self.model.index(isoIndex,1)),
isoIndex)
self.checkThreads[-1].md5Signal.connect(self.md5Check)
self.checkThreads[-1].sha1Signal.connect(self.sha1Check)
self.checkThreads[-1].dateSignal.connect(self.dateCheck)
Expand Down

0 comments on commit ee5d9b0

Please sign in to comment.