Merge pull request #14 from zdimension/patch-1

fix: Deluge returns 'Online' sometimes instead of 'Connected'
This commit is contained in:
nezu 2024-01-22 12:03:54 +01:00 committed by GitHub
commit 4107cfade9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,7 +76,7 @@ export class DelugeClient {
} }
// this should never fail in theory // this should never fail in theory
if (status != 'Connected') { if (status != 'Connected' && status != 'Online') {
throw new Error('Not connected to deluge'); throw new Error('Not connected to deluge');
} }