mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-13 05:36:36 +00:00
update cards
This commit is contained in:
@@ -479,17 +479,17 @@ namespace MediaBrowser.Dlna.PlayTo
|
||||
_successiveStopCount++;
|
||||
_connectFailureCount++;
|
||||
|
||||
if (_successiveStopCount >= maxSuccessiveStopReturns)
|
||||
{
|
||||
RestartTimerInactive();
|
||||
}
|
||||
if (_connectFailureCount >= maxSuccessiveStopReturns)
|
||||
if (_connectFailureCount >= 3)
|
||||
{
|
||||
if (OnDeviceUnavailable != null)
|
||||
{
|
||||
OnDeviceUnavailable();
|
||||
}
|
||||
}
|
||||
if (_successiveStopCount >= maxSuccessiveStopReturns)
|
||||
{
|
||||
RestartTimerInactive();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
@@ -99,11 +99,11 @@ namespace MediaBrowser.Dlna.PlayTo
|
||||
public void Init(Device device)
|
||||
{
|
||||
_device = device;
|
||||
_device.OnDeviceUnavailable = OnDeviceUnavailable;
|
||||
_device.PlaybackStart += _device_PlaybackStart;
|
||||
_device.PlaybackProgress += _device_PlaybackProgress;
|
||||
_device.PlaybackStopped += _device_PlaybackStopped;
|
||||
_device.MediaChanged += _device_MediaChanged;
|
||||
_device.OnDeviceUnavailable = OnDeviceUnavailable;
|
||||
|
||||
_device.Start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user