aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-04 16:04:33 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-04 16:04:33 +0100
commite03f835ae74293ea5d373d53a6680f1888e40f97 (patch)
tree56eadf530ef9e8a077d12bcefbc08507c0f295a9
parent559f264f4b3556aee0fb33dd083437f3268fd90a (diff)
downloadprosody-e03f835ae74293ea5d373d53a6680f1888e40f97.tar.gz
prosody-e03f835ae74293ea5d373d53a6680f1888e40f97.zip
net.server: Pass current time to timer callbacks
-rw-r--r--net/server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server.lua b/net/server.lua
index 38d0eab5..a0f77c38 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -821,7 +821,7 @@ loop = function( ) -- this is the main loop of the program
_currenttime = os_time( )
if os_difftime( _currenttime - _timer ) >= 1 then
for i = 1, _timerlistlen do
- _timerlist[ i ]( ) -- fire timers
+ _timerlist[ i ]( _currenttime ) -- fire timers
end
_timer = _currenttime
end