-
-
Save rphillips/fa040d89afc801cd7d97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/luvit/uv.lua b/lib/luvit/uv.lua | |
index 74fbc3c..240a317 100644 | |
--- a/lib/luvit/uv.lua | |
+++ b/lib/luvit/uv.lua | |
@@ -256,6 +256,9 @@ function Timer:start(timeout, interval, callback) | |
end | |
function Timer:close() | |
+ if self._closed then | |
+ return | |
+ end | |
if not self._closed then | |
Handle.close(self) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment