fixed finish logic for playing audio from stream

Cause when you compare floats you can't be sure of the exact coincidence of values