Software /
code /
prosody-modules
Diff
mod_pubsub_feeds/mod_pubsub_feeds.lua @ 1457:720ff25d94e6
mod_pubsub_feeds: Check that lease time exists before comparing
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 26 Jun 2014 18:56:15 +0200 |
parent | 1456:2cd667d8edbd |
child | 2132:b149ea428b81 |
line wrap: on
line diff
--- 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