remove useless code of BaseIOStream
Merge pull request #1012 from dlutxx/br310

remove a redundant assignment in read_until_close.