Skip to content

Commit 426ddaf

Browse files
committed
Change exception type thrown in case of timeout in TorrentDownloader to DownloaderException (exception type unification)
1 parent 37e8fc4 commit 426ddaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Assets/Scripts/AppData/Remote/Downloaders/TorrentDownloader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private void CheckTimeout(double progress)
138138

139139
if (_timeoutWatch.ElapsedMilliseconds > _timeout)
140140
{
141-
throw new TimeoutException("Torrent download has timed out.");
141+
throw new DownloaderException("Torrent download has timed out.", DownloaderExceptionStatus.Other);
142142
}
143143
}
144144

0 commit comments

Comments
 (0)