Handle last stream protocol ID
Merge pull request #2 from balr0g/handle-stream-protocol-ids

Handle last stream protocol ID
Accidentally kept old loop