mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-12 22:27:50 +00:00
reset observances_lean on cleanup as well
This commit is contained in:
parent
e159bf5f31
commit
150616406e
8
lsyncd.c
8
lsyncd.c
@ -921,7 +921,6 @@ l_configure(lua_State *L)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static const luaL_reg lsyncdlib[] = {
|
||||
{"addtoclock", l_addtoclock },
|
||||
{"clockbefore", l_clockbefore },
|
||||
@ -946,13 +945,13 @@ static const luaL_reg lsyncdlib[] = {
|
||||
* Dummy variable whos address is used as the cores index in the lua registry
|
||||
* to the lua runners function table in the lua registry.
|
||||
*/
|
||||
static int runner;
|
||||
static int runner = 0;
|
||||
|
||||
/**
|
||||
* Dummy variable whos address is used as the cores index n the lua registry
|
||||
* to the lua runners error handler.
|
||||
*/
|
||||
static int callError;
|
||||
static int callError = 0;
|
||||
|
||||
/**
|
||||
* Pushes a function from the runner on the stack.
|
||||
@ -1521,6 +1520,9 @@ main1(int argc, char *argv[])
|
||||
obs->tidy(obs);
|
||||
}
|
||||
}
|
||||
observances_len = 0;
|
||||
nonobservances_len = 0;
|
||||
observance_action = false;
|
||||
}
|
||||
{
|
||||
/* frees logging categories */
|
||||
|
Loading…
Reference in New Issue
Block a user