Skip to content

Commit

Permalink
Fix a bug causing release build to fail (#36)
Browse files Browse the repository at this point in the history
* Switch from DCHECK to CHECK to fix bug

* Enable debug log
  • Loading branch information
Xia Zhongyang authored Dec 22, 2020
1 parent fec0471 commit 4ee361e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions examples/peerconnection/serverless/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ class MainWindowMock : public MainWindow {
void Run() {
if (config_->conn_autoclose != kAutoCloseDisableValue) {
while (close_time_ == rtc::MessageQueue::kForever) {
RTC_DCHECK(socket_thread_->ProcessMessages(0));
RTC_CHECK(socket_thread_->ProcessMessages(0));
}
RTC_DCHECK(socket_thread_->ProcessMessages(close_time_));
RTC_CHECK(socket_thread_->ProcessMessages(close_time_));
} else {
socket_thread_->Run();
}
Expand All @@ -122,17 +122,19 @@ int main(int argc, char* argv[]) {
exit(EINVAL);
}

webrtc::field_trial::InitFieldTrialsFromString(
"WebRTC-KeepAbsSendTimeExtension/Enabled/"); // Config for
// hasAbsSendTimestamp in
// RTP Header extension

const auto json_file_path = argv[1];
if (!webrtc::ParseAlphaCCConfig(json_file_path)) {
perror("bad config file");
exit(EINVAL);
}

rtc::LogMessage::LogToDebug(rtc::LS_INFO);

webrtc::field_trial::InitFieldTrialsFromString(
"WebRTC-KeepAbsSendTimeExtension/Enabled/"); // Config for
// hasAbsSendTimestamp in
// RTP Header extension

#ifdef WIN32
rtc::WinsockInitializer win_sock_init;
rtc::Win32SocketServer socket_server;
Expand Down

0 comments on commit 4ee361e

Please sign in to comment.