mirror of
https://github.com/rofafor/vdr-plugin-satip.git
synced 2023-10-10 13:37:42 +02:00
bugfix: don't report plugin as initialized if curl failed to initialize
This commit is contained in:
parent
7b683dba8d
commit
8913b173dc
4
satip.c
4
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);
|
||||
|
Loading…
Reference in New Issue
Block a user