set worker_active_connections to 0 always.

fixes a bug where if a worker died it contained garbled data...
This commit is contained in:
Joris Vink 2016-12-04 16:49:42 +01:00
parent cb62a6a8a8
commit 652833a979
1 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,8 @@
#include "tasks.h"
#endif
#define WORKER_DEBUG
#if defined(WORKER_DEBUG)
#define worker_debug(fmt, ...) printf(fmt, ##__VA_ARGS__)
#else
@ -317,6 +319,8 @@ kore_worker_entry(struct kore_worker *kw)
had_lock = 0;
next_lock = 0;
idle_check = 0;
worker_active_connections = 0;
kore_platform_event_init();
kore_msg_worker_init();