Download thread should check return value of poll, rather than the errno.
Fixes bug where download thread can get into an infinite loop and peg the CPU.
Merge pull request #197 from cooperative-computing-lab/master

download thread bug fix