Skip to content

Commit

Permalink
Delay reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
Jleagle committed Jun 24, 2018
1 parent ce79b48 commit e8e98b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Steam.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.IO;
using System.Linq;
using System.Threading;
using System.Timers;
using Newtonsoft.Json;
using SteamKit2;
Expand Down Expand Up @@ -170,6 +171,8 @@ private static void OnDisconnected(SteamClient.DisconnectedCallback callback)
Environment.Exit(0);
}

// Try to reconnect
Thread.Sleep(TimeSpan.FromSeconds(15));
steamClient.Connect();
}

Expand Down
1 change: 1 addition & 0 deletions SteamUpdater.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
<PackageReference Include="RabbitMQ.Client" Version="5.1.0" />
<PackageReference Include="Rollbar" Version="1.5.0" />
<PackageReference Include="SteamKit2" Version="2.1.0" />
<PackageReference Include="ValveKeyValue" Version="0.2.1.107" />
</ItemGroup>
</Project>

0 comments on commit e8e98b9

Please sign in to comment.