Skip to content

Commit a99715b

Browse files
committed
fix
1 parent b8ef7a9 commit a99715b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Engine/FileDB/FileDB.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ public partial class FileDB : IDisposable
3535
#region AddOrUpdate
3636
public void AddOrUpdate(TorrentBaseDetails torrent)
3737
{
38-
if (string.IsNullOrWhiteSpace(torrent.magnet) || torrent.types == null || torrent.types.Length == 0)
39-
return;
40-
4138
if (db.TryGetValue(torrent.url, out TorrentDetails t))
4239
{
4340
long startUpdateTime = t.updateTime.ToFileTimeUtc();
@@ -131,6 +128,9 @@ void upt()
131128
}
132129
else
133130
{
131+
if (string.IsNullOrWhiteSpace(torrent.magnet) || torrent.types == null || torrent.types.Length == 0)
132+
return;
133+
134134
t = new TorrentDetails()
135135
{
136136
url = torrent.url,

0 commit comments

Comments
 (0)