mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-20 17:16:42 +00:00
restore model properties
This commit is contained in:
@@ -15,8 +15,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
/// </summary>
|
||||
public const long Infinite = 0;
|
||||
|
||||
public Func<long, long, long> ThrottleCallback { get; set; }
|
||||
|
||||
#region Private members
|
||||
/// <summary>
|
||||
/// The base stream.
|
||||
@@ -293,16 +291,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
return false;
|
||||
}
|
||||
|
||||
if (ThrottleCallback != null)
|
||||
{
|
||||
var val = ThrottleCallback(_maximumBytesPerSecond, _bytesWritten);
|
||||
|
||||
if (val == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user