mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
Fix crash in Stats.forceUpdateStats() at start-up
This commit is contained in:
parent
d76dfbe83b
commit
b458a746b7
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ void Stats::updateStats(bool force) {
|
|||
|
||||
SharedNodePointer audioMixerNode = nodeList->soloNodeOfType(NodeType::AudioMixer);
|
||||
auto audioClient = DependencyManager::get<AudioClient>().data();
|
||||
if (audioMixerNode || force) {
|
||||
if (audioMixerNode) {
|
||||
STAT_UPDATE(audioMixerKbps, (int)roundf(audioMixerNode->getInboundKbps() +
|
||||
audioMixerNode->getOutboundKbps()));
|
||||
STAT_UPDATE(audioMixerPps, audioMixerNode->getInboundPPS() +
|
||||
|
|
Loading…
Reference in a new issue