add an invariant check for num_connect_candidate in policy
add an invariant check for num_connect_candidate in policy

deluge-clone/libtorrent,deluge-clone/libtorrent,deluge-clone/libtorrent,deluge-clone/libtorrent,deluge-clone/libtorrent,deluge-clone/libtorrent