From fcb26eb64e2f954aedb1803e439b49e6c37389c7 Mon Sep 17 00:00:00 2001 From: R-L-T-Y Date: Fri, 19 Jun 2020 13:10:12 +0800 Subject: [PATCH] fix typo that ignored forced states --- src/utils.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index c270adf..2aa53fb 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,10 +1,10 @@ import { StateType } from './consts'; import { Torrent } from './types'; -const dlState = ['downloading', 'metaDL', 'stalledDL', 'checkingDL', 'pausedDL', 'queuedDL', 'forceDL', 'allocating']; -const upState = ['uploading', 'stalledUP', 'checkingUP', 'queuedUP', 'forceUP']; -const completeState = ['uploading', 'stalledUP', 'checkingUP', 'pausedUP', 'queuedUP', 'forceUP']; -const activeState = ['metaDL', 'downloading', 'forceDL', 'uploading', 'forcedUP', 'moving']; +const dlState = ['downloading', 'metaDL', 'stalledDL', 'checkingDL', 'pausedDL', 'queuedDL', 'forcedDL', 'allocating']; +const upState = ['uploading', 'stalledUP', 'checkingUP', 'queuedUP', 'forcedUP']; +const completeState = ['uploading', 'stalledUP', 'checkingUP', 'pausedUP', 'queuedUP', 'forcedUP']; +const activeState = ['metaDL', 'downloading', 'forcedDL', 'uploading', 'forcedUP', 'moving']; const errorState = ['error', 'missingFiles']; export function torrentIsState(type: StateType, state: string) {