lib torrent thread working