summaryrefslogtreecommitdiff
path: root/src/main_loop.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_loop.lua')
-rw-r--r--src/main_loop.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main_loop.lua b/src/main_loop.lua
index f7fe740..28bd1af 100644
--- a/src/main_loop.lua
+++ b/src/main_loop.lua
@@ -137,13 +137,13 @@ function main_loop(opt)
client_list:unregister(writer.client_instance)
end
end
- if(command_queue:command_pending()) then
- local command = command_queue:get_next_command()
- log.printf(log.DEBUG, "sending pending command: %s", command)
- module_list.output:start_command(command)
- end
end
command_queue:check_timeout()
+ if(command_queue:command_pending()) then
+ local command = command_queue:get_next_command()
+ log.printf(log.DEBUG, "sending pending command: %s", command)
+ module_list.output:start_command(command)
+ end
end
if(return_value == 2) then return_value = 0 end