Skip to content

Commit

Permalink
removed redundant notifyListener call
Browse files Browse the repository at this point in the history
  • Loading branch information
Digital authored and Digital committed Sep 11, 2024
1 parent d257ac8 commit ac38ff7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ public void onPlaybackStateChanged(int state) {
case Player.STATE_ENDED:
stopUpdatingTime();
stop();
notifyListeners("stop", new JSObject().put("ended", true));
break;
}
}
Expand Down Expand Up @@ -262,7 +261,7 @@ public void stop(PluginCall call) {
}

public void stop() {
notifyListeners("stop", new JSObject().put("ended", false));
notifyListeners("stop", new JSObject().put("ended", true));
releasePlayer();
if (service != null) {
// stop may be called before the service is started
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nypublicradio/capacitor-remote-streamer",
"repository": "git://github.com/nypublicradio/capacitor-remote-streamer.git",
"version": "0.2.8",
"version": "0.2.9",
"description": "Stream remote HLS and MP3 streams on iOS and Android. Capacitor 6.",
"main": "dist/plugin.cjs.js",
"repository": {
Expand Down

0 comments on commit ac38ff7

Please sign in to comment.