]> www.vanbest.org Git - motioneye-debian/commitdiff
fixed a bug where media files cleanup wouldn't be invoked
authorCalin Crisan <ccrisan@gmail.com>
Fri, 1 Jul 2016 19:27:11 +0000 (22:27 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Fri, 1 Jul 2016 19:27:11 +0000 (22:27 +0300)
motioneye/mediafiles.py

index 398b62bf6e2339ad96979b4abb978813b0de4f41..4e851f9df113debd36cbd562a9384866ad3435b6 100644 (file)
@@ -177,7 +177,7 @@ def cleanup_media(media_type):
         
         preserve_media = camera_config.get('@preserve_%(media_type)ss' % {'media_type': media_type}, 0)
         if preserve_media == 0:
-            return # preserve forever
+            continue # preserve forever
         
         still_images_enabled = bool(
                 ((camera_config['emulate_motion'] or camera_config['output_pictures']) and camera_config['picture_filename']) or