Skip to content

Commit

Permalink
added cancelinvoke of track complete on new track stream request
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri Visser committed Jul 24, 2014
1 parent b9e9b89 commit 1b6e3aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/UniTunes/Scripts/Service/SoundCloudService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ public void Resolve(string url, Action<SCServiceResponse> resolveCallback, Actio

public void StreamTrack(SCTrack track)
{
CancelInvoke("TrackComplete");

if(Status == ServiceStatus.Busy) {
Debug.LogWarning("Service is busy - ignoring request");
return;
Expand Down

0 comments on commit 1b6e3aa

Please sign in to comment.