Skip to content

Commit

Permalink
fix sound loop whene infinite (0)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krozark committed Feb 9, 2022
1 parent 0fa4761 commit 2c2f96a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound_player/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _do_stop(self):
def _completion_callback(self):
logger.debug("AndroidSound._completion_callback()")
self._loop_done += 1
if int(self._loop) > self._loop_done:
if self._loop == 0 or int(self._loop) > self._loop_done:
logger.debug("more loop to do")
self._mediaplayer.start()
else:
Expand Down

0 comments on commit 2c2f96a

Please sign in to comment.