Skip to content

Commit 38451b7

Browse files
committed
brain damage
1 parent 2a51a96 commit 38451b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/deluge.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export class Deluge implements TorrentClient {
256256
): Promise<AddTorrentResponse> {
257257
let path: string;
258258
const isUploaded = typeof torrent === 'string' && torrent.includes('delugeweb-');
259-
if (isUint8Array(torrent) && !isUploaded) {
259+
if (isUint8Array(torrent) || !isUploaded) {
260260
const upload = await this.upload(torrent);
261261
if (!upload.success || !upload.files.length) {
262262
throw new Error('Failed to upload');

0 commit comments

Comments
 (0)