fix/null-error

This commit is contained in:
JackEnx 2024-05-15 23:21:06 -03:00
parent 29d9c43834
commit 1a3e33cbc9
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "hydra",
"version": "1.2.0",
"version": "1.2.1",
"description": "Hydra",
"main": "./out/main/index.js",
"author": "Los Broxas",

View File

@ -146,6 +146,8 @@ export const getNewRepacksFromOnlineFix = async (
);
worker.once("message", (torrent) => {
if (!torrent) return;
repacks.push({
fileSize: formatBytes(torrent.length ?? 0),
magnet: toMagnetURI(torrent),