Replaced catch() with check for unknown stream length
Merge pull request #1 from sne11ius/spifix

Replaced catch() with check for unknown stream length