diff --git a/src/ringdht/ringaccount.cpp b/src/ringdht/ringaccount.cpp index 8b6a26ce612d17bcd0beb0f7b19da1f038aa023d..baa24b5dc5a74705ef50642dba1e667e6eb68c45 100644 --- a/src/ringdht/ringaccount.cpp +++ b/src/ringdht/ringaccount.cpp @@ -195,11 +195,8 @@ RingAccount::newOutgoingCall(const std::string& toUrl) std::weak_ptr<SIPCall> weak_call = call; manager.addTask([shared_this, weak_call, toUri] { auto call = weak_call.lock(); - - if (not call) { - call->onFailure(); + if (not call) return false; - } // Create an ICE transport for SIP channel std::shared_ptr<IceTransport> ice {};