File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,8 @@ bool CHardwareMonitor::StartHardware()
80
80
StopHardware ();
81
81
82
82
#ifdef WIN32
83
- if (!InitWMI ())
84
- return false ;
83
+ InitWMI ();
85
84
#endif
86
-
87
85
m_stoprequested = false ;
88
86
m_lastquerytime = 0 ;
89
87
m_thread = boost::shared_ptr<boost::thread>(new boost::thread (boost::bind (&CHardwareMonitor::Do_Work, this )));
@@ -361,6 +359,7 @@ void CHardwareMonitor::FetchData()
361
359
RunWMIQuery (" Sensor" ," Load" );
362
360
RunWMIQuery (" Sensor" ," Fan" );
363
361
RunWMIQuery (" Sensor" ," Voltage" );
362
+ return ;
364
363
}
365
364
#elif defined __linux__
366
365
_log.Log (LOG_NORM," Hardware Monitor: Fetching data (System sensors)" );
@@ -456,6 +455,8 @@ void CHardwareMonitor::ExitWMI()
456
455
457
456
bool CHardwareMonitor::IsOHMRunning ()
458
457
{
458
+ if ((m_pServicesOHM == NULL ) || (m_pServicesSystem == NULL ))
459
+ return false ;
459
460
bool bOHMRunning = false ;
460
461
IEnumWbemClassObject* pEnumerator = NULL ;
461
462
HRESULT hr;
Original file line number Diff line number Diff line change @@ -6,9 +6,6 @@ MinimumVisualStudioVersion = 10.0.40219.1
6
6
Project ("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}" ) = "domoticz" , "domoticz.vcxproj" , "{6AD96441-5B2C-467B-AAB6-A1B8368D503A}"
7
7
EndProject
8
8
Global
9
- GlobalSection (Performance ) = preSolution
10
- HasPerformanceSessions = true
11
- EndGlobalSection
12
9
GlobalSection (SolutionConfigurationPlatforms ) = preSolution
13
10
Debug| Win32 = Debug| Win32
14
11
Release| Win32 = Release| Win32
You can’t perform that action at this time.
0 commit comments