diff --git a/src/psc/model/mcptt-pusher.cc b/src/psc/model/mcptt-pusher.cc index 27cfafa8d..2ab0fc691 100644 --- a/src/psc/model/mcptt-pusher.cc +++ b/src/psc/model/mcptt-pusher.cc @@ -145,13 +145,15 @@ void McpttPusher::Release() { NS_LOG_FUNCTION(this); - NS_ABORT_MSG_UNLESS(m_pttApp, "There is no PTT app."); - NS_LOG_LOGIC("Pusher about to release PTT button."); SetPushing(false); - m_pttApp->TakeReleaseNotification(); - if (m_automatic) + if (m_pttApp) { - SchedulePush(); + NS_LOG_LOGIC("Pusher about to release PTT button."); + m_pttApp->TakeReleaseNotification(); + if (m_automatic) + { + SchedulePush(); + } } }