|
|
@ -333,8 +333,8 @@ end |
|
|
|
-- desc: Processes the packet queue to be sent. |
|
|
|
-- desc: Processes the packet queue to be sent. |
|
|
|
---------------------------------------------------------------------------------------------------- |
|
|
|
---------------------------------------------------------------------------------------------------- |
|
|
|
function bluemage.process_queue() |
|
|
|
function bluemage.process_queue() |
|
|
|
if (os.time() >= (bluemage.timer + bluemage.delay)) then |
|
|
|
if (os.clock() >= (bluemage.timer + bluemage.delay)) then |
|
|
|
bluemage.timer = os.time(); |
|
|
|
bluemage.timer = os.clock(); |
|
|
|
|
|
|
|
|
|
|
|
-- Ensure the queue has something to process.. |
|
|
|
-- Ensure the queue has something to process.. |
|
|
|
if (#bluemage.queue > 0) then |
|
|
|
if (#bluemage.queue > 0) then |
|
|
|