Comparison

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
comparison
equal deleted inserted replaced
1456:2cd667d8edbd 1457:720ff25d94e6
111 end 111 end
112 end 112 end
113 end 113 end
114 end 114 end
115 115
116 if item.lease_expires > time() then 116 if item.lease_expires and item.lease_expires > time() then
117 item.subscription = nil; 117 item.subscription = nil;
118 item.lease_expires = nil; 118 item.lease_expires = nil;
119 end 119 end
120 if use_pubsubhubub and not item.subscription then 120 if use_pubsubhubub and not item.subscription then
121 --module:log("debug", "check if %s has a hub", item.node); 121 --module:log("debug", "check if %s has a hub", item.node);