diff --git a/worker/src/Worker.cpp b/worker/src/Worker.cpp index 01c4d90429..e8eaed06d7 100644 --- a/worker/src/Worker.cpp +++ b/worker/src/Worker.cpp @@ -148,17 +148,26 @@ flatbuffers::Offset Worker::FillBuffer( // Add channelMessageHandlers. auto channelMessageHandlers = this->shared->channelMessageRegistrator->FillBuffer(builder); - return FBS::Worker::CreateDumpResponseDirect( - builder, - Logger::Pid, - &webRtcServerIds, - &routerIds, - channelMessageHandlers #ifdef MS_LIBURING_SUPPORTED - , - DepLibUring::IsEnabled() ? DepLibUring::FillBuffer(builder) : nullptr + if (DepLibUring::IsEnabled()) + { + return FBS::Worker::CreateDumpResponseDirect( + builder, + Logger::Pid, + &webRtcServerIds, + &routerIds, + channelMessageHandlers, + DepLibUring::FillBuffer(builder)); + } + else + { + return FBS::Worker::CreateDumpResponseDirect( + builder, Logger::Pid, &webRtcServerIds, &routerIds, channelMessageHandlers, ); + } +#else + return FBS::Worker::CreateDumpResponseDirect( + builder, Logger::Pid, &webRtcServerIds, &routerIds, channelMessageHandlers, ); #endif - ); } flatbuffers::Offset Worker::FillBufferResourceUsage(