Software /
code /
prosody
Diff
net/server.lua @ 1885:1fde15a415e6
net.server: Pass current time to timer callbacks
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 04 Oct 2009 16:04:33 +0100 |
parent | 1884:6eaa440bc9fc |
child | 1886:d19c0a21bfb6 |
line wrap: on
line diff
--- a/net/server.lua Sun Oct 04 16:03:53 2009 +0100 +++ b/net/server.lua Sun Oct 04 16:04:33 2009 +0100 @@ -821,7 +821,7 @@ _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