Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Play next track only if track downloaded successfully

  • Loading branch information...
commit f4f7856a0fa17935565ef98c1be5302056956c05 1 parent 15d22cc
Vyacheslav Slinko authored November 28, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  tio.js
2  tio.js
@@ -269,11 +269,11 @@ var downloadTrack = function () {
269 269
                 if (res.statusCode == 200) {
270 270
                     log(util.format('Downloaded %s %s', track.name, track.file));
271 271
                     library.unshift(track.path);
  272
+                    playNextIfMuted();
272 273
                 } else {
273 274
                     errorCallback();
274 275
                 }
275 276
 
276  
-                playNextIfMuted();
277 277
                 downloadTrack();
278 278
             });
279 279
 

0 notes on commit f4f7856

Please sign in to comment.
Something went wrong with that request. Please try again.