mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
fixes #322 - Sleep and Network Shares
This commit is contained in:
parent
e9aa4e0ded
commit
5fc327c232
@ -48,7 +48,7 @@ namespace MediaBrowser.Common.ScheduledTasks
|
|||||||
if (e.Mode == PowerModes.Resume && SystemEvent == SystemEvent.WakeFromSleep)
|
if (e.Mode == PowerModes.Resume && SystemEvent == SystemEvent.WakeFromSleep)
|
||||||
{
|
{
|
||||||
// This value is a bit arbitrary, but add a delay to help ensure network connections have been restored before running the task
|
// This value is a bit arbitrary, but add a delay to help ensure network connections have been restored before running the task
|
||||||
await Task.Delay(5000).ConfigureAwait(false);
|
await Task.Delay(10000).ConfigureAwait(false);
|
||||||
|
|
||||||
OnTriggered();
|
OnTriggered();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user