Skip to content

Commit

Permalink
Merge PR snabbco#39 (follow up to snabbco#34) into master
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Jun 5, 2018
2 parents dfa40d4 + f924b75 commit ebfd7c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/program/vita/vita.lua
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ function listen_confpath (schema, confpath, loader, interval)
conf_fd = notify_fd:inotify_add_watch(confpath, "close_write")
needs_reconfigure = needs_reconfigure or conf_fd
else
local n, err = notify_fd:inotify_read()
needs_reconfigure = (not err and assert(err.again)) and n >= 1
local events, err = notify_fd:inotify_read()
needs_reconfigure = not (err and assert(err.again)) and #events >= 1
end
end
timer.activate(timer.new("check-for-reconfigure",
Expand Down

0 comments on commit ebfd7c2

Please sign in to comment.