diff options
Diffstat (limited to 'src/zabbix_agent/stats.c')
-rw-r--r-- | src/zabbix_agent/stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zabbix_agent/stats.c b/src/zabbix_agent/stats.c index e0c53b829c5..67579517988 100644 --- a/src/zabbix_agent/stats.c +++ b/src/zabbix_agent/stats.c @@ -452,11 +452,11 @@ ZBX_THREAD_ENTRY(collector_thread, args) } #ifdef _WINDOWS - if (CPU_COLLECTOR_STARTED(collector)) + if (0 != CPU_COLLECTOR_STARTED(collector)) free_cpu_collector(&(collector->cpus)); ZBX_DO_EXIT(); - zbx_thread_exit(0); + zbx_thread_exit(EXIT_SUCCESS); #endif } |