Force sending stats message to sec-mod from worker on disconnect

This commit is contained in:
Nikos Mavrogiannopoulos
2015-09-18 11:05:44 +02:00
parent 0461787fcc
commit 7a209aad84

View File

@@ -306,9 +306,6 @@ void send_stats_to_secmod(worker_st * ws, time_t now, unsigned discon_reason)
CliStatsMsg msg = CLI_STATS_MSG__INIT;
int sd, ret, e;
if (now - ws->last_stats_msg < MIN_STATS_INTERVAL)
return;
ws->last_stats_msg = now;
sd = connect_to_secmod(ws);