diff options
Diffstat (limited to 'src/command_queue.lua')
-rw-r--r-- | src/command_queue.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/command_queue.lua b/src/command_queue.lua index d63fa26..a1aa383 100644 --- a/src/command_queue.lua +++ b/src/command_queue.lua @@ -69,7 +69,15 @@ function command_queue:command_sent() if(self.current == nil) then return end self.current.sent = true - return self.current.expected_response + if(self.current.expected_response) then + return self.current.expected_response + end + + self:command_completed() +end + +function command_queue:check_timeout() + if(self.current == nil or not self.current.sent) then return end end function command_queue:command_completed() |