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()); }