From 7c820f766a6a11132a3264d24c661dd78d9b88de Mon Sep 17 00:00:00 2001 From: Tom Early Date: Thu, 12 Mar 2020 06:26:49 -0700 Subject: [PATCH] fixed not in cache problem --- QnetGateway.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index 1d8ebdd..5d47e2a 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -545,11 +545,12 @@ int CQnetGateway::get_yrcall_rptr(const std::string &call, std::string &rptr, st { int i = 0; int rc = get_yrcall_rptr_from_cache(call, rptr, gate, addr, RoU); - if (rc == 0) { + if (0 == rc) { //printf("get_yrcall_rptr_from_cache: call='%s' rptr='%s' gate='%s', addr='%s' RoU=%c\n", call.c_str(), rptr.c_str(), gate.c_str(), addr.c_str(), RoU); if ((addr.npos == addr.find(':')) && ii[1]) i = 1; - } else + return i; + } else if (2 == rc) return 0; /* at this point, the data is not in cache */