From 7ec6da1759a0831b38d2dc4927de5b36d671be24 Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 20 Mar 2016 19:38:29 +0100 Subject: [PATCH] fix for json read with passive messages --- src/ebusd/mainloop.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ebusd/mainloop.cpp b/src/ebusd/mainloop.cpp index 1e34096e..f8ce4c4d 100644 --- a/src/ebusd/mainloop.cpp +++ b/src/ebusd/mainloop.cpp @@ -1124,8 +1124,9 @@ string MainLoop::executeGet(vector &args, bool& connected) time_t lastup = message->getLastUpdateTime(); if (lastup == 0 && required) { // read directly from bus - ret = readFromBus(message, ""); - if (ret != RESULT_OK) + if (message->isPassive()) + continue; // not possible to actively read this message + if (readFromBus(message, "") != RESULT_OK) continue; lastup = message->getLastUpdateTime(); } else {