@audiowalk/sdk
Advanced tools
Comparing version 1.5.7 to 1.5.8
@@ -32,2 +32,3 @@ import { BehaviorSubject, Subject } from "rxjs"; | ||
private defaultOptions; | ||
private destroyed; | ||
private destroyEvent; | ||
@@ -34,0 +35,0 @@ private volume; |
@@ -25,2 +25,3 @@ import { BehaviorSubject, combineLatest, filter, interval, map, Subject, takeUntil, takeWhile } from "rxjs"; | ||
}; | ||
destroyed = false; | ||
destroyEvent = new Subject(); | ||
@@ -99,2 +100,3 @@ volume = 1; | ||
this.log("Called destroy" + (now ? "now" : "")); | ||
this.destroyed = true; | ||
if (this.status.value !== PlayerStatus.ended) { | ||
@@ -152,3 +154,3 @@ await this.stop(); | ||
this.log("Called stop", params.fade ? "with fade" : ""); | ||
if (this.status.value !== PlayerStatus.ended) { | ||
if (!this.destroyed && this.status.value !== PlayerStatus.ended) { | ||
this.status.next(PlayerStatus.ended); | ||
@@ -155,0 +157,0 @@ this.onStop.next(); |
{ | ||
"name": "@audiowalk/sdk", | ||
"version": "1.5.7", | ||
"version": "1.5.8", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
27035
540