Skip to content

Commit

Permalink
chore: rename callback invoker
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Jan 17, 2025
1 parent b8ccdc4 commit 5650169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void SetSctpSettings(SctpSettings s) { impl::Init::Instance().setSctpSettings(st

#if !USE_NICE

void InvokeUnhandledStunRequestCallback (const juice_mux_binding_request *info, void *user_ptr) {
void InvokeIceUdpMuxCallback (const juice_mux_binding_request *info, void *user_ptr) {
PLOG_DEBUG << "Invoking unhandled STUN request callback";

IceUdpMuxCallback *callback = (IceUdpMuxCallback*)user_ptr;
Expand Down Expand Up @@ -135,7 +135,7 @@ void ListenIceUdpMux ([[maybe_unused]] int port, [[maybe_unused]] IceUdpMuxCallb

PLOG_DEBUG << "Adding listener for unhandled STUN requests";

if (juice_mux_listen(host, port, &InvokeUnhandledStunRequestCallback, callback) < 0) {
if (juice_mux_listen(host, port, &InvokeIceUdpMuxCallback, callback) < 0) {
throw std::invalid_argument("Could not add listener for unhandled STUN requests");
}
#endif
Expand Down

0 comments on commit 5650169

Please sign in to comment.