Software / code / prosody
Changeset
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 |
| parents | 1884:6eaa440bc9fc |
| children | 1886:d19c0a21bfb6 |
| files | net/server.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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