Fix some errors with previous commits
This commit is contained in:
parent
6584bdfd33
commit
44a8dc320b
|
@ -139,7 +139,6 @@ DMON_API_IMPL bool dmon_watch_rm(dmon_watch_id id, const char* watchdir)
|
|||
}
|
||||
}
|
||||
if (i >= c) {
|
||||
*error_code = DMON_ERROR_SUBDIR_LOCATION;
|
||||
if (!skip_lock)
|
||||
pthread_mutex_unlock(&_dmon.mutex);
|
||||
return false;
|
||||
|
|
|
@ -754,7 +754,7 @@ static int f_watch_dir_add(lua_State *L) {
|
|||
watch_id.id = luaL_checkinteger(L, 1);
|
||||
const char *subdir = luaL_checkstring(L, 2);
|
||||
dmon_error error_code;
|
||||
int success = dmon_watch_add(watch_id, subdir, &error_code)
|
||||
int success = dmon_watch_add(watch_id, subdir, &error_code);
|
||||
if (!success) {
|
||||
lua_pushboolean(L, 0);
|
||||
lua_pushstring(L, dmon_error_str(error_code));
|
||||
|
|
Loading…
Reference in New Issue