           (request-new-file)
           (println (str "Number of music files downloaded "
                         (count (:music-files @app-state))))
-          (if-not (is-music-playing?)
-            (set! (.-onloadend reader)
-              (fn []
-                (if-not (nil? (:current-sound @app-state))
-                  (.destroySound js/soundManager (:current-sound-id @app-state)))
-                (swap! app-state assoc :current-sound
-                  (.createSound js/soundManager #js {:id   (:current-sound-id @app-state)
-                                                     :type "audio/mpeg"
-                                                     :url  (.-result reader)}))
-
-                  (.play (:current-sound @app-state))
-                  (swap! app-state assoc :current-track (+ 1 (:current-track @app-state)))))))))))
+          (set! (.-onloadend reader) #(play-sound (.-result reader))))))))
 
 (.change (js/$ "#file_upload_input")
   (fn [e]

      (+ 1 (:num-of-queued-requests @app-state))
      :else (request-new-file))))

(defn is-music-playing? []
  false)
  ;(not (.-paused (.getElementById js/document "audio-tag"))))

(.on (new js/ss socket) "file-to-client"
  (fn [stream tags]

      (.emit (js/ss socket) "file" stream)
      (.pipe blob-stream stream))))

