mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 06:17:28 +02:00
Merge pull request #16533 from ctrlaltdavid/DEV-2800
DEV-2800: Fix crash in Stats.forceUpdateStats() at start-up
This commit is contained in:
commit
85cea1fcb6
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ void Stats::updateStats(bool force) {
|
||||||
|
|
||||||
SharedNodePointer audioMixerNode = nodeList->soloNodeOfType(NodeType::AudioMixer);
|
SharedNodePointer audioMixerNode = nodeList->soloNodeOfType(NodeType::AudioMixer);
|
||||||
auto audioClient = DependencyManager::get<AudioClient>().data();
|
auto audioClient = DependencyManager::get<AudioClient>().data();
|
||||||
if (audioMixerNode || force) {
|
if (audioMixerNode) {
|
||||||
STAT_UPDATE(audioMixerKbps, (int)roundf(audioMixerNode->getInboundKbps() +
|
STAT_UPDATE(audioMixerKbps, (int)roundf(audioMixerNode->getInboundKbps() +
|
||||||
audioMixerNode->getOutboundKbps()));
|
audioMixerNode->getOutboundKbps()));
|
||||||
STAT_UPDATE(audioMixerPps, audioMixerNode->getInboundPPS() +
|
STAT_UPDATE(audioMixerPps, audioMixerNode->getInboundPPS() +
|
||||||
|
|
Loading…
Reference in a new issue