Software /
code /
prosody
Comparison
util/timer.lua @ 5879:95f1d5421fbc
util.timer: Fix another variable name typo (thanks again zash).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 30 Oct 2013 17:56:00 -0400 |
parent | 5878:2b1c0c0a2ea6 |
child | 5880:11f14d44438e |
comparison
equal
deleted
inserted
replaced
5878:2b1c0c0a2ea6 | 5879:95f1d5421fbc |
---|---|
94 peek = h:peek(); | 94 peek = h:peek(); |
95 if peek == nil or peek > now then break; end | 95 if peek == nil or peek > now then break; end |
96 local _; | 96 local _; |
97 _, _callback, _id = h:pop(); | 97 _, _callback, _id = h:pop(); |
98 _now = now; | 98 _now = now; |
99 _param = params[id]; | 99 _param = params[_id]; |
100 params[id] = nil; | 100 params[_id] = nil; |
101 --item(now, id, _param); -- FIXME pcall | 101 --item(now, id, _param); -- FIXME pcall |
102 local success, err = xpcall(_call, _traceback_handler); | 102 local success, err = xpcall(_call, _traceback_handler); |
103 if success and type(err) == "number" then | 103 if success and type(err) == "number" then |
104 h:insert(_callback, err + now, _id); -- re-add | 104 h:insert(_callback, err + now, _id); -- re-add |
105 end | 105 end |