# HG changeset patch # User Kim Alvefur # Date 1403801775 -7200 # Node ID 720ff25d94e68d56100e48dd3034b37f2c529be1 # Parent 2cd667d8edbd29b419c41a4d144269002680de77 mod_pubsub_feeds: Check that lease time exists before comparing diff -r 2cd667d8edbd -r 720ff25d94e6 mod_pubsub_feeds/mod_pubsub_feeds.lua --- a/mod_pubsub_feeds/mod_pubsub_feeds.lua Thu Jun 26 18:33:13 2014 +0200 +++ b/mod_pubsub_feeds/mod_pubsub_feeds.lua Thu Jun 26 18:56:15 2014 +0200 @@ -113,7 +113,7 @@ end end - if item.lease_expires > time() then + if item.lease_expires and item.lease_expires > time() then item.subscription = nil; item.lease_expires = nil; end