We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6045112 commit 451f722Copy full SHA for 451f722
MLAPI/MonoBehaviours/Core/NetworkingManager.cs
@@ -769,7 +769,7 @@ private void Update()
769
break;
770
}
771
// Only do another iteration if: there are no more messages AND (there is no limit to max events or we have processed less than the maximum)
772
- } while (eventType != NetEventType.Nothing && (NetworkConfig.MaxReceiveEventsPerTickRate <= 0 || processedEvents < NetworkConfig.MaxReceiveEventsPerTickRate));
+ } while (isListening && (eventType != NetEventType.Nothing && (NetworkConfig.MaxReceiveEventsPerTickRate <= 0 || processedEvents < NetworkConfig.MaxReceiveEventsPerTickRate)));
773
lastReceiveTickTime = NetworkTime;
774
NetworkProfiler.EndTick();
775
0 commit comments