fixed an error in TorrentSocket