summaryrefslogtreecommitdiff
path: root/src/command_queue.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/command_queue.lua')
-rw-r--r--src/command_queue.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/command_queue.lua b/src/command_queue.lua
index a7ed70b..d63fa26 100644
--- a/src/command_queue.lua
+++ b/src/command_queue.lua
@@ -38,6 +38,9 @@ command_queue.commands = {}
command_queue.current = nil
function command_queue:enqueue(command, expected_response, timeout)
+ if(not command) then
+ log.printf(log.INFO, "ignoring empty command")
+ end
local new_cmd = {}
new_cmd.command = command
new_cmd.sent = false