From 8bf8b12ea3e1b25eefbe97b20f22488b6c581f53 Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Thu, 30 May 2013 13:41:38 +0200 Subject: [PATCH] eget: channelGet failed to connect handing --- testApp/remote/eget.cpp | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/testApp/remote/eget.cpp b/testApp/remote/eget.cpp index c86f9a7..938b14a 100644 --- a/testApp/remote/eget.cpp +++ b/testApp/remote/eget.cpp @@ -1374,15 +1374,18 @@ int main (int argc, char *argv[]) ChannelGet::shared_pointer channelGet = channel->createChannelGet(getRequesterImpl, pvRequest); bool ok = getRequesterImpl->waitUntilGet(timeOut); allOK &= ok; - if (ok && collectValues) + if (ok) { - collectedValues.push_back(getRequesterImpl->getPVStructure()); - // no labels collectedNames.push_back(channel->getChannelName()); - } - else - { - // print immediately - printValue(channel->getChannelName(), getRequesterImpl->getPVStructure()); + if (collectValues) + { + collectedValues.push_back(getRequesterImpl->getPVStructure()); + // no labels collectedNames.push_back(channel->getChannelName()); + } + else + { + // print immediately + printValue(channel->getChannelName(), getRequesterImpl->getPVStructure()); + } } } else