Prevent liblipclua crashes

pull/3025/head
robert00s 7 years ago committed by Frans de Jonge
parent d6845d94b1
commit 4651954364

@ -37,8 +37,8 @@ Test if a kindle device has Special Offers
--]] --]]
local function isSpecialOffers() local function isSpecialOffers()
-- Look at the current blanket modules to see if the SO screensavers are enabled... -- Look at the current blanket modules to see if the SO screensavers are enabled...
local lipc = require("liblipclua") local haslipc, lipc = pcall(require, "liblipclua")
if not lipc then if not (haslipc and lipc) then
logger.warn("could not load liblibclua") logger.warn("could not load liblibclua")
return true return true
end end

Loading…
Cancel
Save