Increase idle timeout.

This commit is contained in:
Jared Goodwin 2020-04-21 11:53:21 -07:00
parent 6471e4b0b0
commit 6f0f8d5710

View File

@ -30,9 +30,9 @@ namespace Remotely.ScreenCast.Core.Services
{
ViewersLastSeen = DateTimeOffset.Now;
}
else if (DateTimeOffset.Now - ViewersLastSeen > TimeSpan.FromSeconds(10))
else if (DateTimeOffset.Now - ViewersLastSeen > TimeSpan.FromSeconds(30))
{
Logger.Write("No viewers connected after 10 seconds. Shutting down.");
Logger.Write("No viewers connected after 30 seconds. Shutting down.");
Environment.Exit(0);
}
}