From 8913b173dcf5add803bfd08960c72bb5237fcd01 Mon Sep 17 00:00:00 2001 From: Janosch Machowinski Date: Sun, 22 Mar 2015 21:27:09 +0100 Subject: [PATCH] bugfix: don't report plugin as initialized if curl failed to initialize --- satip.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/satip.c b/satip.c index 6b58e72..a8dc3eb 100644 --- a/satip.c +++ b/satip.c @@ -136,7 +136,11 @@ bool cPluginSatip::Initialize(void) debug1("%s", __PRETTY_FUNCTION__); // Initialize any background activities the plugin shall perform. if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) + { error("Unable to initialize CURL"); + return false; + } + cSatipPoller::GetInstance()->Initialize(); cSatipDiscover::GetInstance()->Initialize(serversM); return cSatipDevice::Initialize(deviceCountM);