Skip to content

Commit

Permalink
Fix error exit condition with orchestrator
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhenderson committed Jan 4, 2024
1 parent b823ea5 commit 587e27c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/psc/model/mcptt-pusher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}

Expand Down

0 comments on commit 587e27c

Please sign in to comment.