From: Calin Crisan Date: Fri, 1 Jul 2016 19:27:11 +0000 (+0300) Subject: fixed a bug where media files cleanup wouldn't be invoked X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=65f75426a227599ad7eb5ef053f695b16e8cfd5c;p=motioneye-debian fixed a bug where media files cleanup wouldn't be invoked --- diff --git a/motioneye/mediafiles.py b/motioneye/mediafiles.py index 398b62b..4e851f9 100644 --- a/motioneye/mediafiles.py +++ b/motioneye/mediafiles.py @@ -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