From 21ce272a6514d908fab413e56831fb63dcfa7c34 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Wed, 21 Aug 2019 14:48:23 +0200 Subject: [PATCH] don't complain unnecessarily in finishProtoco() when protocols are reloaded --- src/StreamCore.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/StreamCore.cc b/src/StreamCore.cc index dfb5126..3a90500 100644 --- a/src/StreamCore.cc +++ b/src/StreamCore.cc @@ -447,10 +447,10 @@ finishProtocol(ProtocolResult status) debug("StreamCore::finishProtocol(%s, %s) %sbus owner\n", name(), toStr(status), flags & BusOwner ? "" : "not "); - if (flags & BusPending) + if (status == Success && flags & BusPending) { - error("StreamCore::finishProtocol(%s): Still waiting for %s%s%s\n", - name(), + error("StreamCore::finishProtocol(%s, %s): Still waiting for %s%s%s\n", + name(), toStr(status), flags & LockPending ? "lockSuccess() " : "", flags & WritePending ? "writeSuccess() " : "", flags & WaitPending ? "timerCallback()" : "");