From 249dbf996c028ada2c06f5d2f7f645513e882f80 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Wed, 15 Jun 2022 19:48:07 +0200 Subject: [PATCH] check metric var --- bridge_tx.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bridge_tx.lua b/bridge_tx.lua index 51b1d0a..d36693e 100644 --- a/bridge_tx.lua +++ b/bridge_tx.lua @@ -35,7 +35,9 @@ end -- queues a command to send to the ui function mtui.send_command(cmd) - metric.inc() + if metric then + metric.inc() + end table.insert(commands, cmd) if not send_triggered then