From e706e69fb1f854715bd9fc707dc89e93e6b13ff0 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 29 Jan 2011 22:20:41 -0700 Subject: [PATCH] Author: Alex Rousskov Handle early eCAP transaction failures better. Do not throw an exception if eCAP transaction had to deal with a virgin body but was not consuming it at swangSong() time. This may happen if the eCAP adapter throws an exception before the adapter requests the virgin body transmission or after it stops the transmission. In other words, the transaction wrapper consumes only if proxyingVb is on. --- src/adaptation/ecap/XactionRep.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adaptation/ecap/XactionRep.cc b/src/adaptation/ecap/XactionRep.cc index cb9bb7ede7..373281f89c 100644 --- a/src/adaptation/ecap/XactionRep.cc +++ b/src/adaptation/ecap/XactionRep.cc @@ -88,7 +88,7 @@ Adaptation::Ecap::XactionRep::swanSong() } } - { + if (proxyingVb == opOn) { BodyPipe::Pointer body_pipe = theVirginRep.raw().body_pipe; if (body_pipe != NULL) { Must(body_pipe->stillConsuming(this)); -- 2.47.2