Fixed ping issue (Thanks Muka!)

This commit is contained in:
Derek S 2021-04-06 19:17:55 -05:00
parent b92ce3010b
commit f274261ecf

View file

@ -187,7 +187,7 @@ namespace LightReflectiveMirror
if (conf.UseLoadBalancer)
{
if (Endpoint.lastPing.AddSeconds(60) > DateTime.Now)
if (DateTime.Now > Endpoint.lastPing.AddSeconds(60))
{
// Dont await that on main thread. It would cause a lag spike for clients.
RegisterSelfToLoadBalancer();