bgpd: Compile fix for clearing-completion FSM fix, using workqueue helper.

(cherry picked from commit 782fb0770080d0e2970fc63af8645e82543aa4d0)

Conflicts:
	bgpd/bgp_fsm.c
This commit is contained in:
Paul Jakma 2015-09-15 16:17:22 +01:00 committed by vivek
parent 10ead5c82c
commit b4575c00ce

View File

@ -940,7 +940,7 @@ bgp_fsm_change_status (struct peer *peer, int status)
* the state change that happens below, so peer will be in Clearing
* (or Deleted).
*/
if (!peer->clear_node_queue->thread)
if (!work_queue_is_scheduled (peer->clear_node_queue))
BGP_EVENT_ADD (peer, Clearing_Completed);
}