This commit is contained in:
JohnCorby 2022-08-24 18:28:17 -07:00
parent df75b8c56a
commit e5f023804a

View File

@ -132,14 +132,14 @@ public static class QSBPlayerManager
public static IEnumerator SendHeartbeat()
{
// yeah mirror has it's own hearbeat stuff, but we have problems with "ghost" PlayerInfos due to epic transport being goofy
// yeah mirror has its own hearbeat stuff, but we have problems with "ghost" PlayerInfos due to epic transport being goofy
while (true)
{
if (QSBCore.IsInMultiplayer && QSBCore.IsHost)
{
foreach (var player in PlayerList)
{
// if we didnt receive a response in the last loop then we should kick them
// if we didn't receive a response in the last loop then we should remove them
if (!player.HeartbeatReceived)
{
DebugLog.DebugWrite($"Didn't receive heartbeat from {player} in time. Removing them.", MessageType.Warning);