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

snowyu/libtorrent,snowyu/libtorrent,snowyu/libtorrent,TeoTwawki/libtorrent,TeoTwawki/libtorrent,TeoTwawki/libtorrent,hamedramzi/libtorrent,TeoTwawki/libtorrent,hamedramzi/libtorrent,hamedramzi/libtorrent,hamedramzi/libtorrent,TeoTwawki/libtorrent,snowyu/libtorrent,snowyu/libtorrent,snowyu/libtorrent,hamedramzi/libtorrent,TeoTwawki/libtorrent,hamedramzi/libtorrent