Ticket #1648 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Timer heap new API pj_timer_heap_cancel_if_active() should not assert if given bad entry

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-2.2
Component: pjlib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

The pj_timer_heap_cancel_if_active() API may be given bad timer entry to cancel, because as the name suggest, caller does not check if the entry is active or not. In this case it should just ignore it rather than raising an assertion.

Change History

comment:1 Changed 6 years ago by bennylp

  • Status changed from new to closed
  • Resolution set to fixed

In 4449:

Fixed #1648: Timer heap new API cancel_if_active() should not assert if given bad entry

Note: See TracTickets for help on using tickets.