From 88ff9e95e505247aa9c3679bf827e887655562f1 Mon Sep 17 00:00:00 2001 From: Tom Niget Date: Mon, 22 Jan 2024 01:21:22 +0100 Subject: [PATCH] fix: Deluge returns 'Online' sometimes instead of 'Connected' --- src/DelugeClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DelugeClient.ts b/src/DelugeClient.ts index 2390ee4..d3df42c 100644 --- a/src/DelugeClient.ts +++ b/src/DelugeClient.ts @@ -76,7 +76,7 @@ export class DelugeClient { } // this should never fail in theory - if (status != 'Connected') { + if (status != 'Connected' && status != 'Online') { throw new Error('Not connected to deluge'); }