From 63a7649693735d617a4cd7ea7bf17bddfccebbba Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 27 Jun 2017 12:59:13 +0200 Subject: [PATCH] quiet spurious warning --- src/remoteClient/clientContextImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/remoteClient/clientContextImpl.cpp b/src/remoteClient/clientContextImpl.cpp index 3eabd11..d2ffd79 100644 --- a/src/remoteClient/clientContextImpl.cpp +++ b/src/remoteClient/clientContextImpl.cpp @@ -342,8 +342,8 @@ public: { startRequest(PURE_DESTROY_REQUEST); m_channel->checkAndGetTransport()->enqueueSendRequest(internal_from_this()); - } catch (std::tr1::bad_weak_ptr& e) { - // noop (do not complain if fails) + } catch (std::runtime_error& e) { + // assume from checkAndGetTransport() due to wrong channel state } catch (std::exception& e) { LOG(logLevelWarn, "Ignore exception during BaseRequestImpl::destroy: %s", e.what()); }