Merge pull request #6481 from donaldsharp/bgp_thread_cancel

bgpd: Use THREAD_CANCEL instead of thread_cancel
This commit is contained in:
Renato Westphal 2020-05-28 20:28:31 -03:00 committed by GitHub
commit 276b698a43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -909,7 +909,7 @@ void bgp_close(void)
for (ALL_LIST_ELEMENTS(bm->listen_sockets, node, next, listener)) {
if (listener->bgp)
continue;
thread_cancel(listener->thread);
THREAD_OFF(listener->thread);
close(listener->fd);
listnode_delete(bm->listen_sockets, listener);
XFREE(MTYPE_BGP_LISTENER, listener->name);