@@ -582,7 +582,7 @@ namespace nim_comp
582582 }
583583 else {
584584 requestTokenValue (uid);
585- while (" xyz" == stoken_)
585+ while (" xyz" == stoken_ && isUseRtcSafeMode )
586586 {
587587 std::this_thread::yield ();
588588 }
@@ -755,7 +755,7 @@ namespace nim_comp
755755 // std::string sValue = values["cid"].asString();
756756 if (value == 1 ) {
757757 if (notifyInfo) {
758- while (" xyz" == stoken_)
758+ while (" xyz" == stoken_ && isUseRtcSafeMode )
759759 {
760760 std::this_thread::yield ();
761761 }
@@ -875,7 +875,7 @@ namespace nim_comp
875875 QLOG_APP (L" handleAccepted, version_: {0}" ) << version_;
876876
877877 requestTokenValue (channelMembers_[senderAccid]);
878- while (" xyz" == stoken_)
878+ while (" xyz" == stoken_ && isUseRtcSafeMode )
879879 {
880880 std::this_thread::yield ();
881881 }
@@ -1088,12 +1088,13 @@ namespace nim_comp
10881088 }
10891089 // /////////////////////////////G2事件///////////////////////////////
10901090 void AvChatComponent::onJoinChannel (nertc::channel_id_t cid, nertc::uid_t uid, nertc::NERtcErrorCode result, uint64_t elapsed) {
1091- QLOG_APP (L" onJoinChannel" );
1091+ QLOG_APP (L" onJoinChannel, cid: {0}, uid: {1}, result: {2}, elapsed: {3}" )
1092+ << cid << uid << result << elapsed;
10921093 // rtcEngine_->enableLocalAudio(true);
10931094 }
10941095 void AvChatComponent::onUserJoined (nertc::uid_t uid, const char * user_name)
10951096 {
1096- QLOG_APP (L" onUserJoined" ) ;
1097+ QLOG_APP (L" onUserJoined, uid: {0}, user name: {1} " ) << uid << user_name ;
10971098 int ret = rtcEngine_->subscribeRemoteVideoStream (uid, nertc::kNERtcRemoteVideoStreamTypeHigh , true );
10981099 // ret = rtcEngine_->subscribeRemoteAudioStream(uid, true);
10991100
0 commit comments