Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
luvit: uv.lua: ref loop before closing handle
handle closing now unrefs the loop directly, get the ordering right here
to fix test-timer.lua after libuv bump
  • Loading branch information
Brandon Philips committed May 8, 2012
1 parent d8bf920 commit b9fd2b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/luvit/uv.lua
Expand Up @@ -202,10 +202,10 @@ function Timer:start(timeout, interval, callback)
end

function Timer:close()
Handle.close(self)
if self._active == false then
native.ref()
end
Handle.close(self)
end

-- Timer:stop()
Expand Down

0 comments on commit b9fd2b7

Please sign in to comment.