Shutdown event

This commit is contained in:
Ruud
2011-08-29 23:58:35 +02:00
parent a77dc35613
commit 4fd3f91a77
6 changed files with 85 additions and 48 deletions
+4
View File
@@ -216,6 +216,10 @@ class Renamer(Plugin):
# Search for trailers etc
fireEvent('renamer.after', group)
# Break if CP wants to shut down
if self.shuttingDown():
break
def moveFile(self, old, dest, suppress = True):
try:
shutil.move(old, dest)