mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 23:12:16 +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);
|
||||
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