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