fixed an incorrect assert and added another one in the invariant check
fixed an incorrect assert and added another one in the invariant check


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