Skip to content

Commit

Permalink
AmStunConnection: fix checkStunTimer() nullopt checking
Browse files Browse the repository at this point in the history
  • Loading branch information
furmur committed Oct 28, 2024
1 parent b9c83b3 commit 2011e9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/media/AmStunConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ void IceContext::updateStunTimers(std::unordered_map<AmStunConnection *, unsigne
} else {
if(wait_conn) {
wait_conn->checkState();
connections[wait_conn] = wait_conn->checkStunTimer().value();
if(auto interval = wait_conn->checkStunTimer(); interval.has_value())
connections[wait_conn] = interval.value();
}
if(frozen_conn)
frozen_conn->checkState();
Expand Down

0 comments on commit 2011e9a

Please sign in to comment.