summaryrefslogtreecommitdiff
path: root/cpp/lib/common/sys/apr/LFSessionContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib/common/sys/apr/LFSessionContext.cpp')
-rw-r--r--cpp/lib/common/sys/apr/LFSessionContext.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/cpp/lib/common/sys/apr/LFSessionContext.cpp b/cpp/lib/common/sys/apr/LFSessionContext.cpp
index 7fb8d5a91b..f0804f6c72 100644
--- a/cpp/lib/common/sys/apr/LFSessionContext.cpp
+++ b/cpp/lib/common/sys/apr/LFSessionContext.cpp
@@ -58,9 +58,15 @@ void LFSessionContext::read(){
in.flip();
if(initiated){
AMQFrame frame;
- while(frame.decode(in)){
- if(debug) log("RECV", &frame);
- handler->received(&frame);
+ try{
+ while(frame.decode(in)){
+ if(debug) log("RECV", &frame);
+ handler->received(&frame);
+ }
+ }catch(QpidError error){
+ std::cout << "Error [" << error.code << "] " << error.msg
+ << " (" << error.location.file << ":" << error.location.line
+ << ")" << std::endl;
}
}else{
ProtocolInitiation protocolInit;