diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-11-21 03:16:14 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-11-21 03:16:14 +0000 |
commit | 723b03c6bfeacaa3f6d04ea0a1c719216cd01494 (patch) | |
tree | 4ce4a4f9b64d56a207e65207837aa8618b6cf961 | |
parent | 27032e69558352d9d91c26f90894411ef64d0d0b (diff) | |
download | prosody-723b03c6bfeacaa3f6d04ea0a1c719216cd01494.tar.gz prosody-723b03c6bfeacaa3f6d04ea0a1c719216cd01494.zip |
util.timer: Fix libevent timers (event.base doesn't exist...)
-rw-r--r-- | util/timer.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/timer.lua b/util/timer.lua index 4c9a3ea9..efc1812d 100644 --- a/util/timer.lua +++ b/util/timer.lua @@ -9,6 +9,7 @@ local ns_addtimer = require "net.server".addtimer; local event = require "net.server".event; +local event_base = require "net.server".event_base; local get_time = os.time; local t_insert = table.insert; @@ -54,7 +55,7 @@ if not event then else local EVENT_LEAVE = (event.core and event.core.LEAVE) or -1; function _add_task(delay, func) - event.base:addevent(nil, event.EV_TIMEOUT, function () + event_base:addevent(nil, event.EV_TIMEOUT, function () local ret = func(); if ret then _add_task(ret, func); |