summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index 0ffa1fca..1f2e7ef8 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
- * $Id: vdr.c 4.29 2019/03/18 11:17:07 kls Exp $
+ * $Id: vdr.c 4.30 2019/05/23 09:48:35 kls Exp $
*/
#include <getopt.h>
@@ -1182,7 +1182,9 @@ int main(int argc, char *argv[])
if (Timers->DeleteExpired())
TimersModified = true;
// Make sure there is enough free disk space for ongoing recordings:
- AssertFreeDiskSpace(Timers->GetMaxPriority());
+ int MaxPriority = Timers->GetMaxPriority();
+ if (MaxPriority >= 0)
+ AssertFreeDiskSpace(MaxPriority);
TimersStateKey.Remove(TimersModified);
}
// Recordings: