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