mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-11-03 19:07:00 -05:00 
			
		
		
		
	Remove unnecessary socket event causing OOM
This commit is contained in:
		
							parent
							
								
									5a2bdc58da
								
							
						
					
					
						commit
						b50d7f0927
					
				@ -104,9 +104,6 @@ export default {
 | 
			
		||||
        this.episodesDownloading = this.episodesDownloading.filter((d) => d.id !== episodeDownload.id)
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    episodeDownloadQueueUpdated(downloadQueueDetails) {
 | 
			
		||||
      this.episodeDownloadsQueued = downloadQueueDetails.queue.filter((q) => q.libraryId == this.libraryId)
 | 
			
		||||
    },
 | 
			
		||||
    async loadInitialDownloadQueue() {
 | 
			
		||||
      this.processing = true
 | 
			
		||||
      const queuePayload = await this.$axios.$get(`/api/libraries/${this.libraryId}/episode-downloads`).catch((error) => {
 | 
			
		||||
@ -128,7 +125,6 @@ export default {
 | 
			
		||||
      this.$root.socket.on('episode_download_queued', this.episodeDownloadQueued)
 | 
			
		||||
      this.$root.socket.on('episode_download_started', this.episodeDownloadStarted)
 | 
			
		||||
      this.$root.socket.on('episode_download_finished', this.episodeDownloadFinished)
 | 
			
		||||
      this.$root.socket.on('episode_download_queue_updated', this.episodeDownloadQueueUpdated)
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  mounted() {
 | 
			
		||||
@ -138,7 +134,6 @@ export default {
 | 
			
		||||
    this.$root.socket.off('episode_download_queued', this.episodeDownloadQueued)
 | 
			
		||||
    this.$root.socket.off('episode_download_started', this.episodeDownloadStarted)
 | 
			
		||||
    this.$root.socket.off('episode_download_finished', this.episodeDownloadFinished)
 | 
			
		||||
    this.$root.socket.off('episode_download_queue_updated', this.episodeDownloadQueueUpdated)
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
@ -63,7 +63,6 @@ class PodcastManager {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  async startPodcastEpisodeDownload(podcastEpisodeDownload) {
 | 
			
		||||
    SocketAuthority.emitter('episode_download_queue_updated', this.getDownloadQueueDetails())
 | 
			
		||||
    if (this.currentDownload) {
 | 
			
		||||
      this.downloadQueue.push(podcastEpisodeDownload)
 | 
			
		||||
      SocketAuthority.emitter('episode_download_queued', podcastEpisodeDownload.toJSONForClient())
 | 
			
		||||
@ -149,7 +148,6 @@ class PodcastManager {
 | 
			
		||||
    TaskManager.taskFinished(task)
 | 
			
		||||
 | 
			
		||||
    SocketAuthority.emitter('episode_download_finished', this.currentDownload.toJSONForClient())
 | 
			
		||||
    SocketAuthority.emitter('episode_download_queue_updated', this.getDownloadQueueDetails())
 | 
			
		||||
 | 
			
		||||
    Watcher.removeIgnoreDir(this.currentDownload.libraryItem.path)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user