Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
main: minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioribeiro committed Oct 22, 2014
1 parent 5e42e83 commit 8c12dae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var ResourceRequester = require('./resource_requester')
var UploadHandler = require('./upload_handler')
var PlaybackInfo = require('./playback_info')
var AdaptiveStreaming = require('./adaptive_streaming')
var Storage = require('storage')
var Storage = require('./storage')

var JST = require('./jst')
var HLS = require('./hls')
Expand Down Expand Up @@ -77,9 +77,9 @@ class P2PHLS extends HLS {

resourceLoaded(chunk, method) {
if (this.currentUrl) {
this.currentUrl = null
this.el.resourceLoaded(chunk)
this.storage.setItem(this.currentUrl, chunk)
this.currentUrl = null
this.playbackInfo.updateChunkStats(method)
}
}
Expand Down

0 comments on commit 8c12dae

Please sign in to comment.