summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Jakma <paul@jakma.org>2015-09-15 16:17:22 +0100
committervivek <vivek@cumulusnetworks.com>2016-06-06 09:10:39 -0700
commitb4575c00ced02228266a80e2b9b79b569e7760f3 (patch)
tree209fc94ad8f59ddf9367d0f1695c47d2b9f1f758
parent10ead5c82ce5cfbfc3a1ff9044324ec4f59aefad (diff)
bgpd: Compile fix for clearing-completion FSM fix, using workqueue helper.
(cherry picked from commit 782fb0770080d0e2970fc63af8645e82543aa4d0) Conflicts: bgpd/bgp_fsm.c
-rw-r--r--bgpd/bgp_fsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index 2373bff104..9da21fdffd 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -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);
}