diff --git a/src/discord-rpc.cpp b/src/discord-rpc.cpp index fc2e929..3c5e4e2 100644 --- a/src/discord-rpc.cpp +++ b/src/discord-rpc.cpp @@ -38,6 +38,8 @@ static QueuedMessage SendQueue[MessageQueueSize]{}; static std::atomic_uint SendQueueNextAdd{0}; static std::atomic_uint SendQueueNextSend{0}; static std::atomic_uint SendQueuePendingSends{0}; +// We want to auto connect, and retry on failure, but not as fast as possible. This does expoential +// backoff from 0.5 seconds to 1 minute static Backoff ReconnectTimeMs(500, 60 * 1000); static auto NextConnect{std::chrono::system_clock::now()}; static int Pid{0};