mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-12 11:12:07 +00:00
Merge pull request #400 from hydralauncher/fix/worker-null-error
fix/null-error
This commit is contained in:
commit
a27a8644ea
2 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hydra",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"description": "Hydra",
|
||||
"main": "./out/main/index.js",
|
||||
"author": "Los Broxas",
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue