update cards
This commit is contained in:
parent
0117ee67d8
commit
f1d965c655
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user