Skip to content

Commit

Permalink
Increase idle timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 21, 2020
1 parent 6471e4b commit 6f0f8d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ScreenCast.Core/Services/IdleTimer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ private void Timer_Elapsed(object sender, ElapsedEventArgs e)
{
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);
}
}
Expand Down

0 comments on commit 6f0f8d5

Please sign in to comment.